A378885 Numbers that are divisible by at least three different primes and the smallest three of them are consecutive primes.
30, 60, 90, 105, 120, 150, 180, 210, 240, 270, 300, 315, 330, 360, 385, 390, 420, 450, 480, 510, 525, 540, 570, 600, 630, 660, 690, 720, 735, 750, 780, 810, 840, 870, 900, 930, 945, 960, 990, 1001, 1020, 1050, 1080, 1110, 1140, 1155, 1170, 1200, 1230, 1260, 1290
Offset: 1
Examples
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.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
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]
-
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));
Comments