Optimize Way to check number is Prime or Not .

We try to optimize algorithm to check given number is prime or not .
optimize way to check number is prime or not

optimize way to check number is prime or not