Algorithm To Check If A Number Is Prime Or Not