OFFSET
2,1
COMMENTS
Care has to be taken to start with a large enough n to be sure terms are not missed. Here we used n=100.
FORMULA
n# is n primorial = product of primes 2*3*5*...*p<=n
EXAMPLE
5# = 2*3*5 = 30. 30+7 = 37 first prime,30+11 = 41 second prime.
PROG
(PARI) primorp2(n) = { pr=1; for(x=1, n, f=1; pr*=prime(x); for(m=1, n, y=pr+prime(m); if(isprime(y), f=1; for(m=m+1, n, y=pr+prime(m); if(isprime(y), print1(y", "); f=0; break, f=1)); ); if(f==0, break) ) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 23 2004
STATUS
approved