Publicis Sapient Interview Question

Core java and print prime number