Ask Your Question

Revision history [back]

Problem with simple Pari/GP script in Sage Cell Server

I am trying to run the following Pari/GP script in Sage Cell Server:

for(x=1, 1000000, for(y=1, 1000000, if(floor((sigma(x)/y)+(sigma(y)/x))==2x-sigma(x),print(x,"   ",y))))

I cannot seem to figure out what is wrong with it.

I confirm that I am choosing the correct option in the drop-down menu (i.e., GP).

I am getting the following error message:

***   expected character: ',' or ')' instead of:
  ***   x-sigma(x),print(x,"