OFFSET
1,2
COMMENTS
LINKS
Donald Alan Morrison, Table of n, a(n) for n = 1..10000
Donald Alan Morrison, Sage program
Eric Weisstein's World of Mathematics, Semiprime
MATHEMATICA
Select[Range[120], ! PrimeOmega[#] == 2 &] (* Vincenzo Librandi, Jun 14 2014 *)
PROG
(PARI) isok(n) = (bigomega(n) != 2) \\ Michel Marcus, Aug 01 2013
(Python)
from math import isqrt
from sympy import prime, primepi
def A100959(n):
def f(x): return n+int(sum(primepi(x//prime(k))-k+1 for k in range(1, primepi(isqrt(x))+1)))
m, k = n, f(n)
while m != k:
m, k = k, f(k)
return m # Chai Wah Wu, Jul 23 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Nov 24 2004
STATUS
approved