Moved the Compute of prime

Forgot to move the test for prim under the default switch statement.