User talk:PureFox: Difference between revisions
→Primes which sum of digits is 25: Replied to Horsth.
(→Primes which sum of digits is 25: new section) |
(→Primes which sum of digits is 25: Replied to Horsth.) |
||
Line 246:
Took 4.980341373s</pre>
I couldn't compile the cpp version.<BR>I only wanted to know, if generating the possible combinations = 1291 and than create the permutations could be faster for generating the numbers. [[user:horsth|Horsth]] 17:55, 29 March 2021 (UTC)
:On a 'counting only' basis, the Go example runs in about 3.7 seconds on my machine which is an Intel Core i7-8565U.
:The C++ example should compile with a line such as this: g++ -std=c++11 -O3 sum25.cpp -lgmp -o sum25. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 18:23, 29 March 2021 (UTC)
|