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 14, 2026 12:43olliecrowolliecrowScore: 36,423Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 12:4336,28853,737,42930,936,000997,0002,273,280
2Feb 14, 2026 12:4336,31154,032,96230,956,000998,0002,494,464
3Feb 14, 2026 12:4336,33552,115,65530,976,000999,0002,535,424
4Feb 14, 2026 12:4336,41554,967,05731,044,0001,001,0002,498,560
5Feb 14, 2026 12:4336,42353,695,34631,051,0001,001,0002,494,464
6Feb 14, 2026 12:4336,50654,323,98231,122,0001,003,0002,498,560
7Feb 14, 2026 12:4336,50752,572,01131,123,0001,003,0002,498,560
8Feb 14, 2026 12:4336,51959,821,28031,133,0001,004,0002,498,560
9Feb 14, 2026 12:4336,56858,366,86231,175,0001,005,0002,494,464