You are viewing a single comment's thread. Return to all comments →
primes =[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] def primeCount(n): total = 1 count = 0 if n == 2: return 1 for x in primes: total *= x count +=1 if total > n: break if total == n: return count elif total > n: return count-1
Leonardo's Prime Factors
You are viewing a single comment's thread. Return to all comments →