Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/syncom/prime_classes

Pari-GP script for classification of a prime number
https://github.com/syncom/prime_classes

Last synced: 4 days ago
JSON representation

Pari-GP script for classification of a prime number

Awesome Lists containing this project

README

        

# Classification of a prime number in the Pari-GP Programming Language

## How to install Pari-GP (On Ubuntu)
```
sudo apt-get install pari-gp
```

## How to run

In `gp` console:
```
\r prime_classes.gp
p=2017
iswhatprime(p)
```

To run the script from a Linux shell (e.g., for automation), use `gp`'s
`-q` option:
```
$ (cat prime_classes.gp; echo "p=2017;"; echo "iswhatprime(p)") | gp -q
```