You are right I made a typeI just checked again and that's what the code is printing ...

Bert
You are right I made a typeI just checked again and that's what the code is printing ...
I use the following code in order to neatly print thousands separators:BertTuyt wrote:You are right I made a typeI just checked again and that's what the code is printing ...![]()
Bert
Code: Select all
#include <iostream>
#include <locale>
int main()
{
std::cout.imbue( std::locale( "en_US.utf8" ));
std::cout << (1LL << 32);
}
Code: Select all
#include <stdio.h>
#include <locale.h>
int main()
{
setlocale(LC_NUMERIC, "en_US.utf8");
printf("%'lld\n", (1LL << 32));
}
Assuming it scales, that's fast enough to do 5x5 in a day. 6x6 would take a month and fill up a 8 TB harddiskBertTuyt wrote:I tested also hyperthreading (so 16 threads), and now the time is 22.3 seconds, so 23.1 MPositions/second.
Edit: Small improvement which yield 20.6 sec (aka 25.0 MPos/sec).
Bert