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.