List of numbers.

Ayomav

Regular Member
Joined
Nov 23, 2011
Messages
250
Reaction score
19
Hey guys,

Need a little help.

I need list of numbers from 1 till 25 million.

1
..
25000000

The textmechanic site can only generate till 900k , anyone knows how to get it.

Thanks
 
Its simple.. Just write a simple program(using for or while loop) in any language( c, c++ etc) and store the output in a text file..
 
If you are using Windows 7. Open up powershell and paste this in (just right click)

Code:
$s = [System.IO.StreamWriter] "C:\numbers.txt"
$r = 1..25000000
$c = $r.Count
For($i = 1; $i -lt $c; $i++) { $s.WriteLine($i) }
$s.Close()
 
Last edited:
Does Win actually support int values up to 25 million? When I was learning C++, my teacher told me you can't go beyond 32000 something..
 
what format do u need it in? i have some spare time, and a MONSTER VPS sitting empty for 12 hrs.
 
Does Win actually support int values up to 25 million? When I was learning C++, my teacher told me you can't go beyond 32000 something..

It depends on the data type you are using to store the number. What you are thinking of is a short, which uses 16 bits of memory to store the number.

To store 25million you'd assign it to a 64bit integer (aka long).
 
Back
Top