Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJul 31, 2022 14:53Robert BurkeRobert BurkeScore: 37,394Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 14:5337,12759,888,95132,672,00002,449,408
2Jul 31, 2022 14:5337,20957,321,28531,721,0001,023,0002,449,408
3Jul 31, 2022 14:5337,37057,735,80629,897,0002,989,0002,273,280
4Jul 31, 2022 14:5337,37755,201,46329,902,0002,990,0002,535,424
5Jul 31, 2022 14:5337,38356,996,47830,904,0001,993,0002,273,280
6Jul 31, 2022 14:5337,39363,470,96332,906,00002,441,216
7Jul 31, 2022 14:5337,39460,131,99431,910,000997,0002,273,280
8Jul 31, 2022 14:5337,47454,037,57331,978,000999,0002,535,424
9Jul 31, 2022 14:5337,62290,410,73233,107,16502,289,664
10Jul 31, 2022 14:5337,64860,189,31532,127,0001,003,0002,535,424
11Jul 31, 2022 14:5337,67789,778,40633,156,05102,293,760
12Jul 31, 2022 14:5337,74891,350,28933,218,16002,289,664