% p35.m computes x^35 by repeated squaring followed by multiplication. p. 8.

x2=x*x       % x^2
x4=x2*x2     % x^4
x8=x4*x4     % x^8
x16=x8*x8    % x^16
x32=x16*x16  % x^32
x35=x32*x2*x % x^35
