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 12, 2024 03:05zielajzielajScore: 11,030Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 03:0510,97228,185,0229,655,00002,330,624
2Dec 12, 2024 03:0510,97726,830,7359,660,00002,334,720
3Dec 12, 2024 03:0511,00023,471,2669,680,00002,334,720
4Dec 12, 2024 03:0511,01830,972,5509,696,00002,330,624
5Dec 12, 2024 03:0511,03025,303,9828,628,0001,078,0002,338,816
6Dec 12, 2024 03:0511,04529,553,8679,720,00002,269,184
7Dec 12, 2024 03:0511,05524,650,2069,728,00002,269,184
8Dec 12, 2024 03:0511,15127,136,0529,813,00002,433,024
9Dec 12, 2024 03:0511,15632,438,5099,817,00002,269,184