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 19, 2024 13:18zielajzielajScore: 4,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 13:184,58221,388,9383,024,0001,008,0002,494,464
2Dec 19, 2024 13:184,58218,261,7293,024,0001,008,0002,494,464
3Dec 19, 2024 13:184,58919,537,0712,019,0002,019,0002,535,424
4Dec 19, 2024 13:184,60520,511,9532,026,0002,026,0002,498,560
5Dec 19, 2024 13:184,60616,233,5733,040,0001,013,0002,273,280
6Dec 19, 2024 13:184,61823,189,5453,048,0001,016,0002,498,560
7Dec 19, 2024 13:184,63916,018,5973,062,0001,020,0002,277,376
8Dec 19, 2024 13:184,65622,138,9663,073,0001,024,0002,535,424
9Dec 19, 2024 13:184,78622,802,0622,106,0002,106,0002,330,624