OFFSET
1,1
LINKS
Vladimir Letsko, Mathematical Marathon, Problem 227 (in Russian).
EXAMPLE
4 is the unique integer x such that x = 2*sopf(x), a prime, so 2 is a term.
PROG
(PARI) sopf(n) = vecsum(factor(n)[, 1]); \\ A008472
pp(n) = prod(k=1, n, prime(k)); \\ A002110
sp(n) = sum(k=1, n, prime(k)); \\ A007504
ip(n) = {my(k=1); while (pp(k)/sp(k) <= n, k++); k+1; }
lista(nn) = {my(lim = pp(ip(nn))); my(v = vector(lim, k, k++; k/sopf(k))); my(w = select(x->myisprime(x), v)); select(x->(x<=nn), apply(x->prime(x), Vec(select(x->(x==1), vector(nn-1, k, #select(x->(x==prime(k)), w)), 1)))); } \\ Michel Marcus, Jul 19 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Letsko, Jul 16 2020
STATUS
proposed