+-*/ interpreting and primesearch using GMP library