OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(7)=71 because 7*10+1=71 is prime, whereas 7*8+1=57 and 7*9+1=64 are composite.
MATHEMATICA
f[n_] := Block[{k = n + 1}, While[ !PrimeQ[k*n + 1], k++ ]; k*n + 1]; Array[f, 50] (* Robert G. Wilson v, Dec 17 2009 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Nov 18 2003
EXTENSIONS
More terms from Hugo Pfoertner, Apr 01 2004
STATUS
approved