Now the trick is, getting the program to check and make sure that those two operations must be the only ones to have no remainder in order for it to tell the user that 7 is a prime number rather than the user judging for him/herself.
here's what I've done so far
Expand|Select|Wrap|Line Numbers
- Dim input As Integer
- Dim test As Double
- Dim i As Integer = 1
- Console.WriteLine("Enter a number to see if it is a prime number")
- input = Console.ReadLine()
- Console.WriteLine(" ")
- While (i <= input)
- test = input Mod i
- Console.WriteLine(test)
- i = i + 1
- End While