OFFSET
1,1
MAPLE
seq(nextprime(i)*(i+1), i=0..49); # Zerinvary Lajos, Jan 23 2007
MATHEMATICA
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Table[n*NextPrim[n - 1], {n, 10}] (* Robert G. Wilson v, Aug 20 2006 *)
Array[ #If[PrimeQ@#, #, Prime[PrimePi@# + 1]] &, 50] (* Zak Seidov, Aug 21 2006 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jeff Choate (bopeton(AT)gmail.com), Feb 24 2000
EXTENSIONS
Corrected and extended by James A. Sellers, Feb 25 2000
STATUS
approved