Newbie: req for a bit of tutorial type help.
Remco Gerlich
scarblac-spamtrap at pino.selwerd.nl
Sun Mar 12 10:20:16 EST 2000
Aesop wrote in comp.lang.python:
> Writing up a brute force type algorithm (no points for creative thinking on
> my behalf). What i need is something that will perform divisions of the
> prospective prime number, and report whether there is any "remainder". I.E
> the modulus operator of C.
Use the modulus operator of C:
>>> 7 % 3
1
:-)
--
Remco Gerlich, scarblac at pino.selwerd.nl
"This gubblick contains many nonsklarkish English flutzpahs, but the
overall pluggandisp can be glorked from context" (David Moser)
More information about the Python-list
mailing list