libprim