OFFSET
1,2
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..2000
MATHEMATICA
Table[k = 1; While[! PrimeQ[k*30^n - 1], k++]; k, {n, 100}] (* T. D. Noe, Jun 06 2012 *)
PROG
PFGW64 and SCRIPTIFY from Primeform Group
Command : pfgw64 -f in.txt
in.txt file :
SCRIPT
DIM nn, 0
DIM kk
DIMS tt
OPENFILEOUT myfile, a(n).txt
LABEL loopn
SET nn, nn+1
IF nn>2000 THEN END
SET kk, 0
LABEL loopk
SET kk, kk+1
SETS tt, %d, %d\,; nn; kk
PRP kk*30^nn-1, tt
IF ISPRP THEN GOTO b
IF ISPRIME THEN GOTO b
GOTO loopk
LABEL b
WRITE myfile, tt
GOTO loopn
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jun 02 2012
STATUS
approved