To test whether a number is prime or not using Miller-Rabin Test. please note that in the second example if the value of T=-1 then the number is prime
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.