Skip to content

A utility class to calculate perfect numbers in mathematics

Notifications You must be signed in to change notification settings

abryant710/perfect_numbers_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Perfect numbers

Please refer to my article on Medium.

Example

const perfectNumsCalc = new PerfectNumbersCalculator({max: 100});
perfectNumsCalc.findPerfects(); // Result: [6, 28]
perfectNumsCalc.setNewMaximum({max: 10000});
perfectNumsCalc.findPerfects(); // Result: [6, 28, 496, 8128]
perfectNumsCalc.checkIfPerfect(777); // false
perfectNumsCalc.checkIfPerfect(33550336); // true

About

A utility class to calculate perfect numbers in mathematics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published