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 16:43olliecrowolliecrowScore: 26,148Success
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 16:4326,03352,525,98622,909,00002,506,752
2Feb 14, 2026 16:4326,06144,657,76722,934,00002,502,656
3Feb 14, 2026 16:4326,08651,753,75821,958,000998,0002,498,560
4Feb 14, 2026 16:4326,14242,715,36022,005,0001,000,0002,502,656
5Feb 14, 2026 16:4326,14847,044,43122,010,0001,000,0002,494,464
6Feb 14, 2026 16:4326,17044,906,12622,029,0001,001,0002,494,464
7Feb 14, 2026 16:4326,19948,576,35122,053,0001,002,0002,498,560
8Feb 14, 2026 16:4326,21044,008,58922,063,0001,002,0002,502,656
9Feb 14, 2026 16:4326,21844,600,91522,069,0001,003,0002,490,368