Axis41 interview question

Write a Java program to output all the primes less than a given integer.