Skip to content

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

License

Notifications You must be signed in to change notification settings

AppsLab2019/Open-Lab-03.09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages