You will obviously need big integer arithmetics extension. tupper.sm(204.5 KiB) downloaded 1007 time(s). tupper.sm(202.26 KiB) downloaded 1010 time(s). (revised)
You will need Big Integer Arithmetics plugin. You can install it from SMath>Tools>Plugins.