as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
build an algorithm that will find all prime numbers between 2 and 100.
user
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)
assistant