Skip to content

mhowe21/Java-Perfect-Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Perfect Number Finder in Java

Description

This project is a perfect number finder implemented in Java. A perfect number is a positive integer that is equal to the sum of its proper positive divisors, excluding the number itself. For example, the first perfect number is 6, because 1, 2, and 3 are its proper positive divisors, and 1 + 2 + 3 = 6.

The project consists of two main files:

  • App.java: This is the main file that runs the program.
  • PerfectNumber.java: This file contains the mathematical operations for finding the perfect number.

Features

  • The program has an example method that finds perfect numbers between 1 and 200.
  • It also includes a method that allows users to find perfect numbers within a range of their choice.

Usage

To use the program, simply run the App.java file. The program will prompt you to enter a range, and it will then find all the perfect numbers within that range. Depending on your Java enviroment you may need to complile the Perfectnumber java file using javac in order to run the App.Java file.

References

License

This project is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages