Question d’entretien chez FAST

Given a getPrime() method, how would you write code to get the first 100 primes? How would you write getPrime()? (Later) What are ways you could optimize this code?