|
|
A226802
|
|
Primes p where the digital sum of p^2 is equal to 10.
|
|
3
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The next term is > 24154957 (if it exists). - R. J. Mathar, Jul 05 2013
No additional terms < 10^15. - Chai Wah Wu, Nov 15 2015
|
|
LINKS
|
|
|
EXAMPLE
|
19 is in the sequence because 19^2=361 and 3+6+1=10.
71 is in the sequence because 71^2=5041 and 5+0+4+1=10.
|
|
MAPLE
|
select(p -> isprime(p) and convert(convert(p^2, base, 10), `+`)=10, [seq(2*k+1, k=1..100000)]); # Robert Israel, Sep 23 2014
|
|
MATHEMATICA
|
Select[Prime[Range[70000]], Total[IntegerDigits[#^2]]== 10&]
|
|
PROG
|
(Magma) [p: p in PrimesUpTo(5*10^6) | &+Intseq(p^2) eq 10];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|