message: Update prime_number.py
diff: @@ -8,3 +8,15 @@ if(isprime==1):
  print(num, "is a prime number")
  else:
  print(num, "is not a prime number")
  +
  +
  +
  +def gen_primes(N):
  + """Generate primes up to N"""
  + primes = set()
  + for n in range(2, N):
  + if all(n % p > 0 for p in primes):
  + primes.add(n)
  + yield n
  +
  +print(*gen_primes())
  