Pregunta de entrevista de Barclays

Write java code to print prime numbers?