Checking if secret n function is additive for prime numbers