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 listFeb 10, 2026 13:56zielajzielajScore: 3,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 10, 2026 13:573,31820,989,0432,920,00002,412,544
2Feb 10, 2026 13:563,41322,922,4312,002,0001,001,0002,404,352
3Feb 10, 2026 13:573,43421,549,0932,015,0001,007,0002,535,424
4Feb 10, 2026 13:563,44119,627,9482,019,0001,009,0002,510,848
5Feb 10, 2026 13:573,44823,887,8291,011,0002,023,0002,404,352
6Feb 10, 2026 13:564,16824,701,8613,668,00002,535,424