Skip to content

Utility functions for working with prime numbers

License

Notifications You must be signed in to change notification settings

ltodorov/primes

Repository files navigation

primes

Utility functions for working with prime numbers

Scripts

  • pnpm clean - cleans the distribution and coverage folders
  • pnpm build - cleans and compile the typescript files
  • pnpm lint - statically analyzes your code to catch common errors and to help writing idiomatic code
  • pnpm formatter - formats your code
  • pnpm check - runs both lint and formatter scripts
  • pnpm test - runs tests
  • pnpm coverage - runs tests and enable coverage report

Usage

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

About

Utility functions for working with prime numbers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published