Acentra Health Interview Question

Write prime numbers in java