OFFSET
1,1
COMMENTS
Tetraprimes are the product of four distinct prime numbers (cf. A046386).
EXAMPLE
3770 = 2*5*13*29, 3771 = 3^2*419, 3772 = 2^2*23*41, 3773 = 7^3*11, 3774 = 2*3*17*37, so 3770 is a term.
12122 = 2*11*19*29, 12123 = 3^3*449, 12124 = 2^2*7*433, 12125 = 5^3*97, 12126 = 2*3*43*47, so 12122 is a term.
MATHEMATICA
f[n_] := Module[{e = FactorInteger[n][[;; , 2]]}, If[e == {1, 1, 1, 1}, 1, If[AnyTrue[e, # > 1 &], 2, 0]]]; Position[Partition[Array[f, 130000], 5, 1], {1, 2, 2, 2, 1}][[;; , 1]] (* Amiram Eldar, Nov 30 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Nov 30 2023
STATUS
approved