OFFSET
1,1
COMMENTS
Equivalently, primes p such that A051903(p^3-1) < 3. - Amiram Eldar, Dec 26 2021
EXAMPLE
5 is a term since (A349309(3) + 1) ^ (1/3) = 125 ^ (1/3) = 5.
MAPLE
filter:= n -> isprime(n) and max(map(t -> t[2], ifactors(n^3-1)[2]))<3:
select(filter, [2, seq(i, i=3..1000, 2)]); # Robert Israel, Dec 26 2021
MATHEMATICA
q[p_] := PrimeQ[p] && AllTrue[FactorInteger[p^3 - 1][[;; , 2]], # < 3 &]; Select[Range[500], q] (* Amiram Eldar, Dec 26 2021 *)
PROG
(Python)
from itertools import count, islice
from sympy import prime, factorint
def A350179_gen(): return (p for p in (prime(n) for n in count(1)) if max(factorint(p**3-1).values()) < 3)
(PARI) isok(p) = isprime(p) && (vecmax(factor(p^3-1)[, 2]) < 3); \\ Michel Marcus, Jul 18 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Flávio V. Fernandes, Dec 23 2021
EXTENSIONS
More terms from Michel Marcus, Dec 25 2021
STATUS
approved