OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = prime(A390917(n)).
EXAMPLE
a(4) = 17 is a term because the four consecutive primes starting with 17 are 17, 19, 23 and 29, and 17 * 19 * 23 * 29 - (17 + 19 + 23 + 29) = 215353 is prime.
MAPLE
map(ithprime, select(proc(t) local j; isprime(mul(ithprime(j), j=t..t+3) - add(ithprime(j), j=t..t+3)) end proc, [$1..1000]));
MATHEMATICA
Select[Partition[Prime[Range[1000]], 4, 1], PrimeQ[Times @@ # - Plus @@ #] &][[All, 1]] (* Paolo Xausa, Dec 01 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Nov 23 2025
STATUS
approved
