OFFSET
1,1
MATHEMATICA
s = "1"; Do[s = s <> ToString[n]; k = ToExpression[s]; i = 1; While[ !PrimeQ[i*k + 1], i++ ]; Print[i*k + 1], {n, 2, 30}] (* Ryan Propper, Aug 01 2005 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jul 20 2005
EXTENSIONS
More terms from Ryan Propper, Aug 01 2005
STATUS
approved