Covalense Global interview question

1. Java program for prime number? 2. Web service header ?