SILC Math interface includes various utility functions such as prime generation, and conversion routines. See the silcmp.h for the SILC MP interface.