Zenardy interview question

print prime numbers in java