top of page
PROGRAMMING CHALLENGES
Prime Number Checker
Difficulty:
2 Medium
1.6 Iteration (while loops)
Topic:
Write a program that checks if a given number is prime using a while loop.
- Input: A number
- Processing: Check if the number is divisible by any number other than 1 and itself
- Output: Print whether the number is prime or not.
- Processing: Check if the number is divisible by any number other than 1 and itself
- Output: Print whether the number is prime or not.
Need help with your programming skills?
If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.
bottom of page