Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import math
- def primes_sum(limit):
- num_list = range(2, limit)
- i, counter = 2, 1
- while i <= math.sqrt(limit):
- num_list = num_list[:counter] + filter(lambda x: x%i!=0, num_list[counter:])
- i = num_list[counter]
- counter +=1
- print sum(num_list)
- def main():
- start_time = time.time()
- print range(2000000)
- print 'Rum time: '+str(time.time()-start_time)
- if __name__ == "__main__":
- main()
- Internal error: TypeError: FUNCTION_TABLE[HEAP[(HEAP[(c + 4)] + 28)]] is not a function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement