OFFSET
1,3
COMMENTS
If Goldbach’s conjecture is true, a(n) > 0 would always exist for n > 2.
LINKS
Jean-Marc Rebert, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=1, because the first prime is 2, primorial 1# = 2 and 2*2 - 2 = 2 is prime.
a(2) = -1, because the second prime is 3, 2# = 6 and 2*6 - 3 = 9 is not prime.
PROG
(PARI)
a002110(n)=prod(i=1, n, prime(i))
a(n) = my(y=-1); for(k=1, n, if(isprime(2*a002110(k) - prime(n)), y=k; break)); y
CROSSREFS
KEYWORD
sign
AUTHOR
Jean-Marc Rebert, Aug 05 2015
STATUS
approved