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(9)=43 and 43+44=87, 43+45=88 are not primes but 43+46=89 is prime and also 43*46+1=1979. Thus a(10)=51.
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