1 | initial version |
With such a huge range, you should get a MemoryError
.
Instead of creating the whole list, you can use the xrange()
iterator that generates the numbers one after another without storing them all.
That said, i only get the MemoryError
, no crash: could you please give us some informations so that someone can try to reproduce your problem: