def prime_generator():
    '\n    Generate a sequence of prime numbers\n    '
    num = 2
    while True:
        if prime_check(num):
            (yield num)
        num += 1
Generate a sequence of prime numbers
def prime_generator():
    '\n    \n    '
    num = 2
    while True:
        if prime_check(num):
            (yield num)
        num += 1