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 14, 2024 15:08Ivan BessonovIvan BessonovScore: 35,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:0832,43196,401,18928,538,84502,273,280
2May 14, 2024 15:0832,507111,238,61628,606,23102,269,184
3May 14, 2024 15:0832,537105,054,82928,632,74402,265,088
4May 14, 2024 15:0835,11560,811,27229,905,000996,0002,289,664
5May 14, 2024 15:0835,19560,070,19129,973,000999,0002,281,472
6May 14, 2024 15:0835,22752,339,38430,000,0001,000,0002,273,280
7May 14, 2024 15:0835,22758,962,83629,000,0002,000,0002,289,664
8May 14, 2024 15:0835,25555,742,64129,023,0002,001,0002,289,664
9May 14, 2024 15:0835,25954,897,74729,027,0002,001,0002,277,376
10May 14, 2024 15:0835,29153,980,73829,053,0002,003,0002,289,664
11May 14, 2024 15:0835,37359,425,29529,120,0002,008,0002,289,664
12May 14, 2024 15:0835,49353,168,62930,227,0001,007,0002,281,472