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 listApr 24, 2026 11:45olliecrowolliecrowScore: 147,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 11:46147,165141,816,992126,495,0003,011,0002,412,544stderr
2Apr 24, 2026 11:46147,223147,681,828126,545,0003,012,0002,420,736stderr
3Apr 24, 2026 11:46147,338149,059,734126,643,0003,015,0002,420,736stderr
4Apr 24, 2026 11:46147,348145,317,736126,652,0003,015,0002,449,408stderr
5Apr 24, 2026 11:46147,552143,030,895126,850,0002,996,0002,334,720stderr
6Apr 24, 2026 11:46147,570146,722,584126,866,0002,996,0002,441,216stderr
7Apr 24, 2026 11:46147,695146,712,369127,973,0001,999,0002,445,312stderr
8Apr 24, 2026 11:46147,793148,133,301126,057,0004,001,0002,433,024stderr
9Apr 24, 2026 11:46148,498144,545,397127,664,0003,015,0002,433,024stderr