Question d’entretien chez Barclays

Write java code to print prime numbers?