Problem Description

Check if number is prime (only divisible by 1 and itself).
Real Life: Like checking if you can divide chocolates equally in groups.

Step-by-Step Logic:
1. Take number to check
2. Try dividing by all numbers from 2 to number-1
3. If any number divides completely, not prime
4. If no number divides, it's prime
5. Print result

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next