Precondition: let the prime no be n case1: expected o/p (prime no)result divide the no n by 1 remainder=0 pass divide the no n by n remainder=0 pass
divide the no n by 2 remainder!=0 pass . . divide the no n by upto n-1 and if remanider not equal zero then it is a prime no.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!