You are viewing a single comment's thread. Return to all comments →
Python
def primeCount(n): factor = 0 prime=2 isPrime=True prod=1 while (True): for i in range(2, prime): if prime % i == 0: isPrime = False if isPrime: prod = prod * prime factor +=1 if prod > n: factor -= 1 break prime+=1 isPrime = True return (factor)
Seems like cookies are disabled on this browser, please enable them to open this website
Leonardo's Prime Factors
You are viewing a single comment's thread. Return to all comments →
Python