user
You need to complete the following task:

Build an algorithm that will find all prime numbers between 2 and 100.


assistant
def is_prime(n): 
    if n == 2: 
        return True
    if n < 2 or n % 2 == 0: 
        return False
    # Check if a number is divisible by other numbers
    i = 3
    while i * i <= n: 
        if n % i == 0: 
            return False
        i += 2
    return True

# Print all prime numbers between 2 and 100
print("Prime numbers between 2 and 100:")
for i in range(2, 101): 
    if is_prime(i): 
        print(i)