Well, I compiled your code and entered the number 119 and it printed out:
" not a prime
Prime number"
Do you need help or just mocking us?
Can you explain the algorithm you're using for this?(only if you're willing to, there's no pressure)
D33wakar 36 Posting Whiz in Training
WaltP commented: And by getting a 'better compiler' he fails the class. Great idea! :( -4