Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 425 Bytes

PrimeNumber.md

File metadata and controls

20 lines (13 loc) · 425 Bytes

Problem 2: Prime Number Check

Task:

Write pseudocode to determine if a number is prime.

Instructions:

  1. Take a number as input.
  2. Check if the number is divisible by any number other than 1 and itself.
  3. If the number is divisible by any number other than 1 and itself, output "Not Prime".
  4. If the number is prime, output "Prime".

Example:

  • Input: 7

  • Output: Prime

  • Input: 10

  • Output: Not Prime