Skip to content

This program allows you to choose either you'll want a selected range of numbers, selected numbers or a single number to then check whether they are prime, composite or doesn't fit the requirements of being neither. Checking results will be written to .json files.

Notifications You must be signed in to change notification settings

DavIsmael/advancedPrimeChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To generate .json files you're gonna need to add gson to your project structure. It is listed under the "dependencies directory" on this repo.

To access the project structure on Intellij IDEA:

  1. CTRL + ALT + SHIFT + S or locate the file option on the top left corner and head to "Project Structure"
  2. Select the "Modules" option
  3. Click on Dependencies
  4. Click on the "+" button and select "JARs or directories"
  5. Find the Gson JAR, select it, click ok
  6. Apply, click ok

(You can also find Gson through the Maven Repository, https://mvnrepository.com/artifact/com.google.code.gson/gson)

  • Instructions
    • Approach - 0: This one lets you input numbers on the 'listOfNumbers.json' file so that the program can verify for you if the provided numbers are either prime, composite or neither.
    • Approach - 1: This one lets you verify for numbers inputted on the program itself. You can check for range of numbers, a single number or selected numbers.

PS: This project is not perfect at all, beware.

About

This program allows you to choose either you'll want a selected range of numbers, selected numbers or a single number to then check whether they are prime, composite or doesn't fit the requirements of being neither. Checking results will be written to .json files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages