Update primesmp.c for new API