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:47olliecrowolliecrowScore: 26,088Success
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:4725,86849,159,45422,764,00002,523,136
2Feb 14, 2026 16:4726,02246,197,58422,899,00002,457,600
3Feb 14, 2026 16:4726,04348,062,62922,918,00002,514,944
4Feb 14, 2026 16:4726,05345,912,64521,931,000996,0002,523,136
5Feb 14, 2026 16:4726,08850,764,60421,959,000998,0002,281,472
6Feb 14, 2026 16:4726,10645,095,01719,977,0002,996,0002,514,944
7Feb 14, 2026 16:4726,11746,013,02221,984,000999,0002,404,352
8Feb 14, 2026 16:4726,12047,717,71221,987,000999,0002,523,136
9Feb 14, 2026 16:4726,15945,286,35022,020,0001,000,0002,351,104