Move simd_optimal_prime to its own header file