OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
prime(449) * prime(450) + 4 = 3169 * 3181 + 4 = 10080593, a prime.
MATHEMATICA
f[n_]:=Prime[n]*Prime[n+1]+4; lst={}; Do[If[PrimeQ[f[n]], AppendTo[lst, f[n]]], {n, 6!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 10 2010 *)
Select[Times@@#+4&/@Partition[Prime[Range[500]], 2, 1], PrimeQ] (* Harvey P. Dale, Sep 21 2020 *)
PROG
(PARI) j=[]; for(n=1, 500, x=(prime(n)*prime(n+1))+4; if(isprime(x), j=concat(j, x))); j
(PARI) { n=0; for (m=1, 10^9, if (isprime(a=prime(m)*prime(m + 1) + 4), write("b063442.txt", n++, " ", a); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 21 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 23 2001
STATUS
approved