Persistent Systems Interview Question

program for prime no using scanner