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!)
A178237 Smallest prime p of the form prime(n)+k^2 such that sum of digits(p) = prime(n). 1
2, 3, 5, 7, 47, 157, 593, 919, 599, 66593, 46687, 396937, 467897, 467899, 6969647, 16499897, 367488959, 598095997, 2977884967, 4977866987, 2797986889, 58888728979, 58987779959, 679585896989, 4989996468997 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
It is still an open problem if there exist infinitely many primes of form k^2 + d (d integer, no negative square).
For n<=4, k=0 suffices: e.g. prime(1)+0^2=2 = sum of digits(prime(1)), so a(n)=prime(n).
LINKS
EXAMPLE
a(13) = 467897 because its digitsum is 41 which is the 13th prime, it is of the form prime(13)+k^2 with k=684, and it is the least such prime.
PROG
(PARI) sod(n) = {digs = digits(n, 10); return (sum(j=1, #digs, digs[j])); }
a(n) = {k = 0; p = prime(n); while (! (isprime(q=p+k^2) && (sod(q) == p)), k++); return (q); } \\ Michel Marcus, Jul 26 2013
CROSSREFS
Sequence in context: A052016 A171020 A214179 * A118842 A364831 A244595
KEYWORD
base,nonn
AUTHOR
Ulrich Krug (leuchtfeuer37(AT)gmx.de), May 23 2010
EXTENSIONS
a(5) corrected and sequence extended by D. S. McNeil, May 25 2010
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 20 09:53 EDT 2024. Contains 371802 sequences. (Running on oeis4.)