Why doesn't the following line of code compile?

number % primes[j] == 0 ? return 0 : , ;

If the number % the prime is 0, I want to return 0 to main, else I want it to continue with the function. Here's the error it gives me:

C:\My Documents\Visual Studio Projects\FunLoops\main.cpp(32) : error C2059: syntax error : 'return'