Last active
August 29, 2015 13:58
-
-
Save boustrophedon/10221499 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
int n = 600851475143; | |
var l = new List<int>(); | |
for (int i = 0; i < n; i++) { | |
l.add(i); | |
} | |
} | |
/* Prints: | |
Exhausted heap space, trying to allocate 1073741856 bytes. | |
Unhandled exception: | |
Out of memory | |
*/ | |
/* dart --version: | |
Dart VM version: 1.2.0 (Tue Feb 25 07:34:09 2014) on "linux_x64" | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment