AppsLab2019 / Open-Lab-03.09

(10 XP) A function that checks if a number is a prime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open-Lab-03.09

(10 XP) A function that checks if a number is a prime.

  1. Fork this repository to your GitHub account.
  2. Open solution file in Visual Studio.
  3. Open file Numbers.cs.
  4. Implement the method IsPrimeNumber(int num) that checks if a number is a prime.
  5. Run with CTRL+F5 to test it.
  6. If all tests are passed, commit & sync your repository.
  7. Send a link to your repository for Lab Master (in #slack) to check it.

Examples:

IsPrimeNumber(1) ➞ false
// number one is not a prime number

IsPrimeNumber(2) ➞ true
IsPrimeNumber(7) ➞ true
IsPrimeNumber(10) ➞ false

About

(10 XP) A function that checks if a number is a prime.

License:MIT License


Languages

Language:C# 100.0%