Update Primes.py

Made program more efficient. Still some room for improvement