Simple Prime Factor Check - Coding problem | OneNoughtOne