qs.py basics, generating primes