Utility functions for working with prime numbers
pnpm clean
- cleans the distribution and coverage folderspnpm build
- cleans and compile the typescript filespnpm lint
- statically analyzes your code to catch common errors and to help writing idiomatic codepnpm formatter
- formats your codepnpm check
- runs bothlint
andformatter
scriptspnpm test
- runs testspnpm coverage
- runs tests and enable coverage report
pnpm build
node index.js
- Choose a command
- Prime Factors returns the prime factors of the entered number
- Prime Numbers returns all prime numbers that are bellow the entered number
- GCD returns the greatest common divisor of two numbers
- LCM returns the lowest common multiple of the entered numbers