editing
approved
editing
approved
Only about 5% of these numbers have n' > n. For example, for n up to 10^6 we have 72754 prime n', with 69420 such that n' < n and 3334 such that n' > n. - Paolo P. Lava, May 20 2013, corrected by M. F. Hasler, Apr 07 2015
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
return filter(lambda n:isprime(sum((n*e//p for p, e in factorint(n).items()))), , count(2))
reviewed
editing
proposed
reviewed
editing
proposed
(Python)
from itertools import count, islice
from sympy import isprime, factorint
def A157037_gen(): # generator of terms
return filter(lambda n:isprime(sum((n*e//p for p, e in factorint(n).items()))), count(2))
A157037_list = list(islice(A157037_gen(), 20)) # Chai Wah Wu, Jun 23 2022
approved
editing
Antti Karttunen, <a href="/A157037/b157037_1.txt">Table of n, a(n) for n = 1..10001</a> (first 1000 terms from Reinhard Zumkeller)