I can not figure out how to find the prime numbers given to inputs. (For examply 1 and 100, I would want to find all primes between those numbers)
Here is what I have thus far:
Dim countShort As Short
Dim number1Short As Short
Dim nuber2Short as Short
Dim largeNumberShort As Short
Dim smallNumberShort As Short
Dim countShort As Short
number1Short = number1Textbox.Text
number2Short = number2Textbox.Text
If number1Short < number2Short Then
number1Short = smallNumberShort
number2Short = largeNumberShort
Else
number1Short = largeNumberShort
number2Short = smallNumberShort
End If
So that basically only finds wich number is larger, just in case the user enters the bigger number first.
2007-03-18
15:17:41
·
2 answers
·
asked by
Justin
4
in
Computers & Internet
➔ Programming & Design
Neither of the two following answers helped.
2007-03-18
15:44:44 ·
update #1