login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A215249
a(n) is the smallest number m >= n such that m^2 + n is a prime.
2
1, 3, 4, 5, 6, 11, 8, 9, 10, 11, 24, 13, 16, 15, 16, 21, 24, 19, 20, 21, 40, 25, 24, 35, 26, 69, 28, 33, 30, 31, 34, 39, 56, 35, 48, 49, 38, 39, 50, 41, 54, 47, 44, 45, 46, 49, 48, 53, 50, 57, 56, 53, 54, 55, 56, 69, 64, 59, 60, 67, 64, 105, 64, 65, 66, 71, 68, 75
OFFSET
1,2
MATHEMATICA
Table[m = n; While[! PrimeQ[m^2 + n], m++]; m, {n, 100}] (* T. D. Noe, Aug 12 2012 *)
CROSSREFS
Sequence in context: A143713 A271821 A261459 * A089912 A047425 A048989
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 10 2012
STATUS
approved