See complete series on maths problems here:
• Mathematics for Programmers
In this lesson, we will write a simple program to verify whether a given number is prime or not. The tutorial only describes the algorithm and gives a pseudo-code.
Prerequisite: Knowledge of basic programming constructs like loop.
www.mycodeschool.com is a not for profit educational initiative. You can send your feedback to mycodeschool [at] gmail [dot] com