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:
- CTRL + ALT + SHIFT + S or locate the file option on the top left corner and head to "Project Structure"
- Select the "Modules" option
- Click on Dependencies
- Click on the "+" button and select "JARs or directories"
- Find the Gson JAR, select it, click ok
- 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.