fixed syntax errors in tprimes