> Compsci help??

Compsci help??

Posted at: 2014-12-18 
Use a while loop. Check and see if the number entered is prime and keep count of the number of primes. When you get to 3, end the while loop.

I am completely stuck on this CompSci problem. Do I have to use a for loop? How to I set one up?

Problem: Write a program that repeatedly asks the user to enter an integer and prints out whether that number is prime. Do so until three primes have been entered.