|
-
Sep 9th, 2009, 07:50 AM
#1
Thread Starter
Junior Member
Check whether an inputted number is prime?
Hi. I'm working on a console application in VB .net that checks a number that the user has inputted, and tells you whether the number is prime.
The number that has to be inputted has to be between 1 and 100. I have all the code so far and at the moment it can check whether the number is or isn't within the boundries.
However at the moment I'm not quite sure what the line of code would be to check whether the number is prime or not. Please could you help?
Thanks a lot.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|