OFFSET
0,1
LINKS
Pierre CAMI, Table of n, a(n) for n = 0..2642
MATHEMATICA
Table[p=3; prod=6; While[! PrimeQ[prod*2^n-1], p=NextPrime[p]; prod=prod*p]; p, {n, 0, 100}]
PROG
PFGW SCRIPTIFY PROGRAM
Prime P in pfgw.log file
command : pfgw -f in.txt
in.txt file follows
SCRIPT
DIM nn, -1
DIM kk
DIMS tt
LABEL loopn
SET nn, nn+1
SET kk, 1
LABEL loopk
SET kk, kk+1
SETS tt, %d, %d\,; nn; p(kk)
PRP p(kk)#*2^nn-1, tt
IF !(ISPRP || ISPRIME) THEN GOTO loopk
GOTO loopn
(Sage) primorial = lambda n: prod(primes(n+1)) # includes n, if prime
A176994 = lambda n: next(p for p in Primes() if p > 2 and is_pseudoprime(primorial(p)*2**n-1)) # D. S. McNeil, Dec 09 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Dec 08 2010
STATUS
approved