Prime numbers. Read about this method of finding primes on Wikipedia, Found this sweet piece of code in Quandray's solution.