OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is a term because 2*3*4 = 2*(1+11) = 3*(1+7) = 4*(1+5) with primes 11, 7, 5.
9 is a term because 8*9*10 = 8*(1+89) = 9*(1+79) = 10*(1+71) with primes 89, 79, 71.
MAPLE
q:= k-> andmap(isprime, (t-> [t-1, t-k, t+k])(k^2-1)):
select(q, [$1..10000])[]; # Alois P. Heinz, Feb 25 2020
MATHEMATICA
Select[Range[2, 10^4], AllTrue[{(# - 1)*#, #*(# + 1), (# + 1)*(# - 1)} - 1, PrimeQ] &] (* Amiram Eldar, Feb 24 2020 *)
PROG
(Rexx)
S = 3
do N = 5 to 595 by 2
if NOPRIME( N*N +N -1 ) then iterate N
if NOPRIME( N*N -2 ) then iterate N
if NOPRIME( N*N -N -1 ) then iterate N
S = S || ', ' N
end N
say S
(PARI) isok(k) = isprime(k*(k+1)-1) && isprime((k+1)*(k-1)-1) && isprime(k*(k-1)-1); \\ Michel Marcus, Feb 25 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank Ellermann, Feb 24 2020
EXTENSIONS
More terms from Amiram Eldar, Feb 24 2020
STATUS
approved