pari

Computer algebra system for fast number theory computations

brewmacoslinux
Try with needOr install directly
Source

About

Computer algebra system designed for fast computations in number theory

Commands

gpgp2cpari-config

Examples

Start interactive PARI/GP calculator$ gp
Compile a GP script to C code for faster execution$ gp2c script.gp
Perform number theory calculation directly$ echo 'factor(1234567890)' | gp -q