Prime Number Problem (Processing (if the quotient by any of these numbers…
Prime Number Problem
if the quotient by any of these numbers is a float then output option #2
take the new number and round it up
Take the inputted number and square root it
if the quotient of any of these numbers is an integer then output option #1
take that number and continuously divide it by every number below it
Project Development Tools
Has to be able to output weather its a prime number or not
Has to be able to calculate weather its a prime number or not.
Has to be able to interpret a number
Should the program be used by a customer or a client of some sort or is it a basic calculation done by a worker?(For Aesthetics)
Should the input be a standard input or will it have to extract it from a file?
Should the program be able to do 1 number at a time and end or should it be able to do multiple numbers after it has solved the first problem?
What is the range of the numbers?(should it be able to calculated the numbers in the millions or just between 0 and 100?)
Design the defined requirments
Take the inputted number, square root it, round it up, and divide it by every number below it until it reaches to 1
Print the options (#1 or #2)
Take the inputted number and make it usable as a variable
Output#1: "This is not a prime number"
Option#2: "This is a prime number"
Has to be an integer