|
|
A028868
|
|
Primes that when squared give numbers with digits in nonascending order.
|
|
4
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
No other solutions below 2*10^9 (probably finite). - Dec 15 1999
|
|
LINKS
|
|
|
EXAMPLE
|
31 is in the sequence as 31 is prime and 31^2 = 961 which has its digits in nonascending order.
2979 is not in the sequence even though 2979^2 = 8874441 does have digits in nonascending order but 2979 = 3^2 * 331 is not prime. (End)
|
|
PROG
|
(PARI) is(n) = my(d = digits(n^2)); d == vecsort(d, , 4) && isprime(n) \\ David A. Corneth, Oct 28 2023
(PARI) \\ see link for a faster program
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|