OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
60 = 2^2 * 3 * 5 is a term since 2, 3 and 5 are consecutive primes.
770 = 2 * 5 * 7 * 11 is not a term since its smallest prime divisor is 2 and it is not divisible by 3, the prime next to 2.
1365 = 3 * 5 * 7 * 13 is a term since 3, 5 and 7 are consecutive primes.
MATHEMATICA
q[k_] := Module[{p = FactorInteger[k][[;; , 1]]}, Length[p] > 2 && p[[2]] == NextPrime[p[[1]]] && p[[3]] == NextPrime[p[[2]]]]; Select[Range[1300], q]
PROG
(PARI) is(k) = if(k == 1, 0, my(p = factor(k)[, 1]); #p > 2 && p[2] == nextprime(p[1]+1) && p[3] == nextprime(p[2]+1));
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Amiram Eldar, Dec 09 2024
STATUS
approved