OFFSET
1,10
COMMENTS
Conjecture: 23,83,113 and 811 are the only primes with a 0 value in the sequence. There is always a prime of the form p^2+k^2 (1 mod 4) between p^2 and (p+1)^2 for every prime not 23,83,113 or 811.
EXAMPLE
a(5)=1 because p(5)=11 and very is only one value of k<=floor(sqrt(2*11+1))=4 for which p(5)^2+k^2 is prime: 11^2+4^2=137
a(27)=3 because p(27)=103 and 103^2+2^2=10613,103^2+10^2=10709,103^2+12^2=10753 are primes.
CROSSREFS
KEYWORD
nonn
AUTHOR
Robin Garcia, Jul 02 2005
STATUS
approved