p007.py
def is_prime(num_to_check):
    """Determine if num_to_check is a prime."""
    for prime in primes:
        # We use primes found so far to determine
        # whether num_to_check is a prime.
        # If num_to_check is divisible by any of primes,
        # then num_to_check is not a prime number.
        if num_to_check % prime == 0:
            return False
    return True
Determine if num_to_check is a prime.
Determine if num_to_check is a prime.
Determine if num_to_check is a prime .
def is_prime(num_to_check):
    for prime in primes:
        if num_to_check % prime == 0:
            return False
    return True
def is_prime ( num_to_check ) : for prime in primes : if num_to_check % prime == 0 : return False return True
Determine if num_to_check is a prime.
Determine if num_to_check is a prime .
"""Determine if num_to_check is a prime.""" # We use primes found so far to determine # whether num_to_check is a prime. # If num_to_check is divisible by any of primes, # then num_to_check is not a prime number.
num_to_check