OFFSET
1,1
COMMENTS
LINKS
Klaus Brockhaus, Table of n, a(n) for n=1..10000
EXAMPLE
The third prime is 5 and the fourth is 7. Therefore 5*3 + 7*4 = 15 + 28 = 43 which is a prime.
MAPLE
P:=proc(n) local i, j; for i from 1 by 1 to n do j:=ithprime(i)*i +ithprime(i+1)*(i+1); if isprime(j) then print(i); fi; od; end: P(200);
PROG
(Magma) [ q: n in [1..133] | IsPrime(q) where q is n*p+(n+1)*NextPrime(p) where p is NthPrime(n) ] // Klaus Brockhaus, Dec 11 2008
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, May 23 2006
STATUS
approved