from math import *
def testPrime(x):
factor = 2
while factor**2 <= x:
if x % factor == 0:
return False
else:
factor = factor + 1
return True
candidate = 3
primeLogSum = log(2)
n = int(raw_input("What is n? "))
while candidate < n:
if testPrime(candidate):
primeLogSum = primeLogSum + log(candidate)
candidate = candidate + 2
print primeLogSum, n, primeLogSum/n
Chat with our AI personalities
10
They both r logs
The spaces between the logs are filled with chinking.
Logs are meant to be read to the public and are factual, Diaries are personal and opinionated.
Logs are logarithms, Napier's Bones were a very early calculating device produced by the inventor of logarithms