LTM Limited interview question

Identify prime numbers using java or python