Axis41 Interview Question

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