A259187 Primes p such that both p and p^2 are distinct-digit numbers.
2, 3, 5, 7, 13, 17, 19, 23, 29, 31, 37, 43, 53, 59, 61, 71, 73, 79, 89, 137, 179, 193, 269, 281, 367, 397, 463, 487, 509, 571, 593, 647, 709, 829, 839, 1307, 1873, 2069, 2731, 2801, 3041, 4157, 4967, 4987, 6043, 7549, 7621, 8623, 21397
Offset: 1
Programs
-
Mathematica
Select[Prime[Range[2500]],Max[DigitCount[#]]<2&&Max[DigitCount[#^2]]<2&] (* Harvey P. Dale, May 25 2020 *)
Comments