MAQ Software interview question

Prime number program