getAllPrimesSieve
Uses a method called sieve of Eratosthenes to get all prime numbers until the limit. Works by adding all the numbers in an arraylist first and then removing all the multiples of every single number in that list.