-
Sieve Of Eratosthenes (Still on Prime)
-
Multi Threading and still looking for Primes
Added some Multi Threading to my code to get full advantage of the dual core on my laptop: import threading import time import inspect import sqlite3 import math class Thread(threading.Thread): def __init__(self, t, *args): threading.Thread.__init__(self, target=t, args=args) self.start() # global variables count = 0 lock = threading.Lock() primeList = [] dbname=’/home/roberto/primelist.db’ table_name = ‘primes’ #…
-
Prime number 2. The sqlite strikes back!
-
How to find BIG prime numbers
