
COMMENTS

As in A002110, primorial(0)=1, and primorial(n) = primorial(n1)*prime(n).
The next term, if it exists, is bigger than 10^8.


EXAMPLE

Sum of primorials not including 3 as a factor is 1 + 2 = 3. Because it's divisible by 3, the latter is in the sequence.
Sum of primorials not including 17 as a factor is 1 + 2 + 6 + 6*5 + 30*7 + 210*11 + 2310*13 = 32589. Because 32589 is divisible by 17, the latter is in the sequence.


PROG

(Python)
primes = [2]*2
primes[1] = 3
def addPrime(k):
for p in primes:
if k%p==0: return
if p*p > k: break
primes.append(k)
for n in range(5, 100000000, 6):
addPrime(n)
addPrime(n+2)
sum = 0
primorial = 1
for p in primes:
sum += primorial
primorial *= p
if sum % p == 0: print p,
(PARI) s=P=1; forprime(p=2, 1e6, s+=P*=p; if(s%p==0, print1(p", "))) \\ Charles R Greathouse IV, Mar 19 2014
(PARI) is(p)=if(!isprime(p), return(0)); my(s=Mod(1, p), P=s); forprime(q=2, p1, s+=P*=q); s==0 \\ Charles R Greathouse IV, Mar 19 2014
