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
create an algorithm for finding prime numbers between 1 and 100
user
1. create a list of numbers from 1 to 100
2. set "p" equal to 2, the first prime number
3. starting from p, count up in increments of p and mark each of these numbers greater than p itself in the list
4. find the first number greater than p in the list that is not marked
5. if there is no such number, stop; otherwise, let p now equal this new number and repeat from step 3.
assistant