Although it’s stored as 2 digits per byte, there’s a program there which converts it for you. It compiled straight away for me, but it reads from stdin and writes to stdout, and I’ve no idea how you’d run it in windows. For anyone that wants to try it in Linux, the command is something like this:
gcc unpack_pi.c
cat pi100m.hexbin.000 | ./a.out 1 100000000 > pi100m.txt
Oh, and then you need to remove the spaces and newlines (possibly), but some basic perl code will do that for you[1]:
#!/usr/bin/perl
open(IN,"pi100m.txt");
open(OUT,">pi100mformat.txt");
print OUT "3";
while(<IN>){
s/\s//g;
s/\n//g;
print OUT $_;
}
The program I wrote searches for a range of periods, but it’s very slow. I’m going to have lunch now, so I’ll download your new program and run it on 100 million digits and see how it goes.
Guy
[1] Little Paul, if you’re reading this, I don’t give a toss if it’s a waste of characters.—Guy