OFFSET
1,2
COMMENTS
Terms are alternately odd and even.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
a(5)=27 and 27+28=55, 27+29=56, 27+30=57, 27+31=58 are not prime but 27+32=59 is prime and also 27*32-1=863. Thus a(6)=32.
MAPLE
with(numtheory); P:=proc(q) local a, b, n; a:=1; b:=0; print(a);
for n from 1 to q do while not isprime(a+b) and not isprime (a*b-1) do
b:=b+2; od; print(b); a:=b; b:=b+1; od; print(); end: P(10^4);
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Aug 27 2013
STATUS
approved