Domanda di colloquio di Quantiphi

Intro then basic questions, code for prime no. Basic OOPS concept