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 listDec 30, 2024 22:09zielajzielajScore: 3,594Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 22:093,49818,275,5702,052,0001,026,0002,281,472
2Dec 30, 2024 22:093,55319,194,0031,042,0002,085,0002,535,424
3Dec 30, 2024 22:093,57417,261,9201,048,0002,097,0002,441,216
4Dec 30, 2024 22:093,59323,765,1851,054,0002,108,0002,433,024
5Dec 30, 2024 22:093,59420,435,9731,054,0002,109,0002,441,216
6Dec 30, 2024 22:093,59720,238,8311,055,0002,110,0002,535,424
7Dec 30, 2024 22:093,59820,509,6451,055,0002,111,0002,441,216
8Dec 30, 2024 22:093,62215,682,4411,062,0002,125,0002,441,216
9Dec 30, 2024 22:093,68318,725,5581,080,0002,161,0002,433,024