OFFSET
1,1
COMMENTS
All terms are divisible by 15. - Robert Israel, Apr 10 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
1*3*5=15 and 15+2 and 15-2 are primes, so 15=a(1) is in the sequence.
3*5*7=105 and 105+2 and 105-2 are primes, so 105=a(2) is in the sequence.
MAPLE
select(t -> isprime(t+2) and isprime(t-2), [seq(n*(n+2)*(n+4), n=1..2000, 2)]); # Robert Israel, Apr 10 2018
MATHEMATICA
f[n_]:=n*(n+2)*(n+4); Select[Table[f[n], {n, 1, 7!, 2}], PrimeQ[ #-2]&&PrimeQ[ #+2]&]
Select[Times@@@Partition[Range[1, 1201, 2], 3, 1], AllTrue[#+{2, -2}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, May 17 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Mar 17 2010
EXTENSIONS
Edited by Robert Israel, Apr 10 2018
STATUS
approved