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 listMay 18, 2024 11:06Ivan BessonovIvan BessonovScore: 20,188Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 11:0619,97545,319,02717,578,00002,289,664
2May 18, 2024 11:0619,98340,272,47316,551,0001,034,0002,289,664
3May 18, 2024 11:0619,98443,537,84916,552,0001,034,0002,289,664
4May 18, 2024 11:0620,08042,703,32816,631,0001,039,0002,289,664
5May 18, 2024 11:0620,09045,256,13817,679,00002,289,664
6May 18, 2024 11:0620,11836,377,32316,663,0001,041,0002,289,664
7May 18, 2024 11:0620,18843,525,58716,720,0001,045,0002,502,656
8May 18, 2024 11:0621,05841,176,18217,502,0001,029,0002,289,664
9May 18, 2024 11:0621,09444,658,17417,532,0001,031,0002,289,664
10May 18, 2024 11:0622,16892,781,66019,508,07702,224,128
11May 18, 2024 11:0622,21378,248,51219,547,41102,232,320
12May 18, 2024 11:0622,22585,535,60219,557,91202,228,224