+ 3
I'm not finding, or giving you any code, instead I'm gonna give you a hint to accomplish your task. First, understand how to verify whether or not a number is a prime, you can use Search bar in Code Playground with keyword "prime", there will be loads of search results from which you can learn and adopt, yet, mind also copyrighted codes, you need to put credits on original author for such cases. Use a loop to ask for input, repeatedly, until the input is a prime number. Hth, cmiiw
27th Oct 2017, 8:33 PM
Ipang