/decompose-node-js

CLI to decompose numbers into all of its divisors and point which of them are prime

Primary LanguageJavaScript

Decompose

How to run

  1. Git clone this repo and access the root dir
  2. Run yarn install to install all packages (Mocha for unit tests)
  3. Run yarn start to start the application
  4. Run yarn test to test the application

Use cases

  • Decomposes a number into all of its divisors.
  • Points which numbers of its divisors are prime numbers.
  • Verify if a number is a prime one or not.