2022 AIME II Problem 5

Twenty distinct points are marked on a circle and labeled 1 through 20 in clockwise order. A line segment is drawn between every pair of points whose labels differ by a prime number. Find the number of triangles formed whose vertices are among the original 20 points.