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
write an algorithm to determine the prime numbers up to 100.
user
an algorithm to determine the prime numbers up to 100 can be constructed as follows: 

1. start with a list of all the numbers from 2 to 100. 
2. set aside 1 as not a prime number. 
3. starting with 2, divide all the other numbers by that number. 
4. any number that is divisible (with no remainder) by the number is not a prime number and can be removed from the list. 
5. next, move onto the next number in the list, and repeat step 3-4 until all numbers from 2 to 100 have been divided. 
6. all numbers left in the list are prime numbers.
assistant