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!)
A079130 Primes such that iterated sum-of-digits (A038194) is a square. 4
13, 19, 31, 37, 67, 73, 103, 109, 127, 139, 157, 163, 181, 193, 199, 211, 229, 271, 283, 307, 337, 373, 379, 397, 409, 433, 463, 487, 499, 523, 541, 571, 577, 607, 613, 631, 643, 661, 733, 739, 751, 757, 769, 787, 811, 823, 829, 859, 877, 883, 919, 937, 967 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Primes which are 1 or 4 mod 9. - Charles R Greathouse IV, Sep 04 2014
LINKS
FORMULA
a(n) ~ 3n log n. - Charles R Greathouse IV, Sep 04 2014
MAPLE
select(isprime, map(t -> (9*t+1, 9*t+4), [$1..1000])); # Robert Israel, Sep 04 2014
MATHEMATICA
sQ[n_]:=MemberQ[{1, 4, 9}, NestWhile[Total[IntegerDigits[#]]&, n, #>9&]]; Select[Prime[Range[300]], sQ] (* Harvey P. Dale, Dec 06 2012 *)
PROG
(PARI) forprime(p=2, 1000, if(issquare(p%9), print1(p, ", ")))
CROSSREFS
Sequence in context: A115093 A158195 A040092 * A243587 A085413 A342943
KEYWORD
nonn,easy,base
AUTHOR
Klaus Brockhaus, Dec 28 2002
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 April 18 18:58 EDT 2024. Contains 371781 sequences. (Running on oeis4.)