Question from the Ruby (legacy) test

Write a Java program that prints the first 100 prime numbers.