Skip to content

Instantly share code, notes, and snippets.

@ElianFabian
Created July 11, 2024 19:17
Show Gist options
  • Save ElianFabian/511a17f61dae35091320681a8fcec2d1 to your computer and use it in GitHub Desktop.
Save ElianFabian/511a17f61dae35091320681a8fcec2d1 to your computer and use it in GitHub Desktop.
Example of how to use PARI/GP inside PowerShell
function Get-PrimeNumber([ulong] $position) {
return [System.UInt128] ("prime($position)" | gp.exe -q)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment