第 353 题:(2022 AIME II, 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.
- For $a<b<c$, the differences $b-a$, $c-b$ and $c-a=(b-a)+(c-b)$ must all be prime. A sum of two primes is an odd prime only if one of them is $2$.
- So the differences are $2$ and $p$ in some order with $p$ and $p+2$ prime, $p+2\le19$, so $p=3,5,11,17$. For each, $2$ orders and $20-(p+2)$ positions: $2(15+13+7+1)=72$.
- The answer is $\boxed{072}$.
Twenty-four distinct points are marked on a circle and labeled $1$ through $24$ 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 $24$ points.