This code exits without any error while the computer get\'s out of ram for this app I guess; it takes around 2 gigs of ram and my laptop has 6; it works only for values like