apple pie's submission of Prime Xor | CodeChef