login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078402 Numbers n such that n^2 + 5 is prime. 13
0, 6, 12, 36, 48, 72, 78, 96, 114, 126, 162, 168, 198, 204, 246, 258, 294, 336, 342, 372, 414, 432, 456, 462, 492, 504, 516, 534, 552, 576, 588, 594, 624, 666, 714, 726, 756, 768, 786, 792, 798, 804, 834, 852, 876, 888, 918, 954, 996 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

The sum of the reciprocals of the primes generated from these indices converges to 0.2332142.. The sum of the reciprocals of these indices cannot be computed.

LINKS

Eric Weisstein's World of Mathematics, Near-Square Prime

MATHEMATICA

lst={}; Do[If[PrimeQ[n^2+5], Print[n]; AppendTo[lst, n]], {n, 10^5}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Aug 21 2008]

PROG

(PARI) \Indices of primes of the form n^2 + 5 and the sum of the reciprocals. nsqpm(n) = {sr=0; forstep(x=0, n, 2, y = x*x+5; if(isprime(y), print1(x" "); sr+=1.0/y; ); ); print(); print(sr); }

CROSSREFS

For the primes see A056905(n).

a(n) = 6 * A056906(n)

Sequence in context: A192029 A166636 A167338 * A127845 A096932 A176681

Adjacent sequences:  A078399 A078400 A078401 * A078403 A078404 A078405

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Dec 26 2002

EXTENSIONS

Offset corrected by Arkadiusz Wesolowski, Aug 09 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 11:25 EST 2012. Contains 205777 sequences.