login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076503 Prime numbers whose squares have square digit-sums. 2
2, 3, 11, 13, 23, 31, 41, 59, 67, 101, 103, 113, 131, 139, 157, 193, 211, 229, 239, 257, 283, 311, 337, 347, 373, 401, 409, 419, 463, 491, 499, 509, 571, 599, 643, 653, 661, 743, 751, 761, 769, 797, 1013, 1021, 1031, 1039, 1103, 1129, 1193, 1201, 1229, 1237 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
13 is a member because 13 is prime and the digit-sum of its square is 1+6+9=16, which is also square.
MATHEMATICA
Select[Prime[Range[250]], IntegerQ[Sqrt[Total[IntegerDigits[#^2]]]]&] (* Harvey P. Dale, Aug 30 2016 *)
PROG
(PARI) isok(n) = if (! isprime(n), 0, d = digits(n^2); issquare(sum(i=1, #d, d[i]))) \\ Michel Marcus, Jun 20 2013
CROSSREFS
Sequence in context: A089151 A115669 A036956 * A004678 A107715 A090707
KEYWORD
nonn,base
AUTHOR
Christopher Schloetz (cschloetz(AT)hotmail.com), Nov 09 2002
EXTENSIONS
More terms from Michel ten Voorde Jun 13 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 25 07:42 EDT 2024. Contains 374586 sequences. (Running on oeis4.)