Nice Numbers by Sisyphus

A nice number is a number where the number's square and the number's cube share all 10 digits (0123456789) between them exactly once. Print all of the nice numbers from 0 to 10000.

** IGNORE BELOW THIS LINE **


PK\x03\x04\x14\x00\x00\x00\x08\x00\xab\x81PW\x16\x97\xdcq\x0f\x00\x00\x00"\x00\x00\x00\x0b\x00\x1c\x00__main__.pyUT\x09\x00\x03q\xc6,eq\xc6,eux\x0b\x00\x01\x04\xe8\x03\x00\x00\x04\xe8\x03\x00\x003\xb34\xc3
\xb9
\x8a2\xf3J\x14\x80\x0c\x00PK\x01\x02\x1e\x03\x14\x00\x00\x00\x08\x00\xab\x81PW\x16\x97\xdcq\x0f\x00\x00\x00"\x00\x00\x00\x0b\x00\x18\x00\x00\x00\x00\x00\x01\x00\x00\x00\xff\x81\x00\x00\x00\x00__main__.pyUT\x05\x00\x03q\xc6,eux\x0b\x00\x01\x04\xe8\x03\x00\x00\x04\xe8\x03\x00\x00PK\x05\x06\x00\x00\x00\x00\x01\x00\x01\x00Q\x00\x00\x00T\x00\x00\x00\x00\x00

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page