Help me in solving FIZZBUZZ2305 problem

My issue

it’s sure that after subtracting prime factors at the end if I find any prime number.Then there will be no odd prime factor of that number.Is it okay?

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;

Problem Link: FIZZBUZZ2305 Problem - CodeChef

if(n%2==0 || n==1) bob will win
alice will win