You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
96 B

25 years ago
  1. n=500
  2. \precision=floor(n*log(2)/log(10)+5)
  3. p=nextprime(ceil(pi*2^500))
  4. #
  5. factor(mod(x^n+x+1,p))