Hexaware Technologies interview question

Print Alternate prime numbers code