Pergunta de entrevista da empresa Barclays

Write java code to print prime numbers?