help me find a better algorithm for primes
i need to make a program that finds all primes between some numbers
the biggest number is 1000000000.
the code that i have works fine, the only problem is that what i thought that would solve this, is too slow
i want to make it faster, like, 5 secs to find all primes until number 1000000000.
cant think anything right now, well imean a better algorithm, so would appreciate any help provided.