OFFSET
1,2
PROG
PFGW and SCRIPTIFY
SCRIPT
DIM nn, 0
DIMS tt
OPENFILEOUT myfile, a(n)
LABEL loopn
SET nn, nn+1
IF nn>30000 THEN END
SETS tt, %d\ ; nn
PRP (3^nn+3)*3^nn-1, tt
IF ISPRP THEN GOTO a
IF ISPRIME THEN GOTO a
GOTO loopn
LABEL a
WRITE myfile, tt
GOTO loopn
(PARI) is(n)=ispseudoprime(9^n+3^(n+1)-1) \\ Charles R Greathouse IV, Jun 06 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jul 26 2012
STATUS
approved