Skip to content

tighebi/Number-Stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number-stats-web

A small Node.js CLI that prints statistics about a given number.

Usage

Run with npm script:

npm run dev -- 42

Or directly:

node src/index.js 3.14

Features

  • Detects integer vs float
  • Positive / negative / zero
  • Even / odd (integers)
  • Factors and prime factors
  • Prime test (integers)
  • Classification: perfect / abundant / deficient
  • Digit statistics

About

Enter an integer and the program will print a collection of statistics about it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors