| 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:
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.