OFFSET
1,1
COMMENTS
Some terms are repeated: e.g. 157*37 - 151*36 = 197*45 - 193*44 = 373.
The first numbers that are repeated 3 times are 96553, 104597, 109793, 139303, etc.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The fourth prime is 7 and the third is 5.
Therefore 7*4 - 5*3 = 28 - 15 = 13 that is a prime.
MAPLE
P:=proc(n) local i, j; j:=ithprime(n+1)*(n+1)-ithprime(n)*n;
if isprime(j) then j; fi; end: a:=seq(P(i), i=1..10000);
MATHEMATICA
Select[#[[2]] - #[[1]] &/@ Partition[Table[n Prime[n], {n, 300}], 2, 1], PrimeQ] (* Harvey P. Dale, Jun 05 2017 *)
PROG
(Magma) [m: i in [1..300] | IsPrime(m) where m is NthPrime(i+1)*(i+1)-NthPrime(i)*i]; // Bruno Berselli, Jun 06 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, May 23 2006
STATUS
approved