p003.py
def is_prime(n):
    """Determine whether the given integer n is prime."""
    result = True
    for i in range(n - 1, 2, -1):
        if n % i == 0:
            # If n is divisible by a smaller integer, then n is not prime.
            result = False
            break

    return result
Determine whether the given integer n is prime.
Determine whether the given integer n is prime.
Determine whether the given integer n is prime .
def is_prime(n):
    result = True
    for i in range(n - 1, 2, -1):
        if n % i == 0:
            result = False
            break
    return result
def is_prime ( n ) : result = True for i in range ( n - 1 , 2 , - 1 ) : if n % i == 0 : result = False break return result
Determine whether the given integer n is prime.
Determine whether the given integer n is prime .
"""Determine whether the given integer n is prime.""" # If n is divisible by a smaller integer, then n is not prime.
n