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 13, 2024 20:53zielajzielajScore: 7,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 20:537,84920,393,6395,921,000986,0002,269,184
2Dec 13, 2024 20:537,85523,604,6224,937,0001,975,0002,531,328
3Dec 13, 2024 20:537,85925,539,1504,940,0001,976,0002,269,184
4Dec 13, 2024 20:537,86322,558,8915,931,000988,0002,334,720
5Dec 13, 2024 20:537,86423,853,3315,932,000988,0002,506,752
6Dec 13, 2024 20:537,86423,049,3454,943,0001,977,0002,269,184
7Dec 13, 2024 20:537,86724,610,9275,934,000989,0002,326,528
8Dec 13, 2024 20:537,86922,150,4166,925,00002,269,184
9Dec 13, 2024 20:537,88019,132,9046,934,00002,269,184