PAT 1156 Sexy Primes(20分)
原题链接:PAT 1156 Sexy Primes(20分) Sexy primes are pairs of primes of the form (p, p6), so-named since “sex” is the Latin word for “six”. (Quoted from http://mathworld.wolfram.com/SexyPrimes.html) Now given an intege…
2025-12-23