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 6, 2026 04:51zielajzielajScore: 198,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:32195,907201,950,577172,398,00002,277,376
2Feb 6, 2026 05:02197,013194,682,071173,371,00002,277,376
3Feb 6, 2026 04:51198,515201,286,603173,695,000998,0002,355,200
4Feb 6, 2026 05:02198,630203,709,816173,796,000998,0002,277,376
5Feb 6, 2026 05:02198,894196,957,838174,027,0001,000,0002,277,376
6Feb 7, 2026 04:32199,294200,112,069175,379,00002,277,376
7Feb 6, 2026 04:51199,528202,128,256175,585,00002,277,376
8Feb 7, 2026 04:32203,893205,088,862179,426,00002,277,376
9Feb 6, 2026 04:51286,175275,653,156250,835,000999,0002,277,376