OFFSET
1,1
COMMENTS
The first five terms comprise the known Fermat primes: A019434.
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..64
EXAMPLE
a(7) = 7 is the smallest prime divisor of 3 * 5 * 17 * 257 * 65537 * 641 + 2 = 2753074036097 = 7 * 11 * 37 * 966329953.
MATHEMATICA
a={3}; q=1;
For[n=2, n<=20, n++,
q=q*Last[a];
AppendTo[a, Min[FactorInteger[q+2][[All, 1]]]];
];
a (* Robert Price, Jul 16 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Nick Hobson, Nov 18 2006
STATUS
approved