check-num
v1.0.0
Published
Check the numbers
Downloads
2
Maintainers
Readme
number system
This is a simple npm package provides the functions to get information about numbers, and if you learning aptitude than it can help you.
functions available
- checkDivisibility(number1,number2) // number1 is Divident , number2 is Devisior.
- nComposite(n) //return array of first n composite numbers.
- nPrime(n) // return array of first n prime numbers.
- isPrime(number) //return true or false
- isComposite(number) //return true or false
- CheckEven(number) //return true or false
- CheckOdd(number) //return true or false
- factorial(number) //return factorial or number
Contribution:
feel free to contribute in this library add more packages.