actually , I want to write a code in which i want to find prime numbers upto 10^8 higher. Can you tell me any property of prime which can tell a particular number prime or not in the most efficient way ? my purpose is to find all prime up to 10^8. thanks if u can help me in this.