Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Square of an unsigned integer without products.

By: a guest on Dec 29th, 2012  |  syntax: PARI/GP  |  size: 0.21 KB  |  views: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*
  2.    Please review and comment if at certain low level the computers today already
  3.    make such calculations with the method shown below.
  4. */
  6. uisqr(x)={my(i,j,k); x+sum(i=1,2,sum(j=1,(x-1),sum(k=(j+1),x,1)))};
clone this paste RAW Paste Data