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 listMar 5, 2025 05:52k11ik11iScore: 113,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 5, 2025 05:52112,877123,391,58897,326,0002,006,0002,289,664
2Mar 5, 2025 05:52112,880125,060,27598,331,0001,003,0002,289,664
3Mar 5, 2025 05:52113,066125,674,79897,488,0002,010,0002,289,664
4Mar 5, 2025 05:52113,109126,432,97796,520,0003,016,0002,289,664
5Mar 5, 2025 05:52113,157127,552,50998,573,0001,005,0002,289,664
6Mar 5, 2025 05:52113,166125,800,45298,581,0001,005,0002,404,352
7Mar 5, 2025 05:52113,249128,088,54898,653,0001,006,0002,289,664
8Mar 5, 2025 05:52113,277125,682,80897,671,0002,013,0002,396,160
9Mar 5, 2025 05:52113,524123,279,40997,903,0001,998,0002,289,664