top of page

PROGRAMMING CHALLENGES

Print Prime Numbers

Difficulty:

2 Medium

1.7 Iteration (for loops)

Topic:

Create a program that prints all prime numbers up to a given limit using a for loop.

- Input: A number
- Processing: Use a for loop to iterate through numbers and check for primes
- Output: Print prime numbers.

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.

bottom of page