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:05zielajzielajScore: 197,775Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:07196,609200,326,914172,016,0001,000,0002,277,376
2Feb 6, 2026 04:04196,711193,128,432172,106,0001,000,0002,277,376
3Feb 6, 2026 04:03196,727195,662,937172,120,0001,000,0002,330,624
4Feb 6, 2026 04:03196,727196,775,435172,120,0001,000,0002,277,376
5Feb 6, 2026 04:04197,436197,140,549172,746,000998,0002,277,376
6Feb 6, 2026 04:07197,476203,136,047173,779,00002,277,376
7Feb 6, 2026 04:05197,775199,039,441173,042,0001,000,0002,277,376
8Feb 6, 2026 04:05198,352199,142,791174,550,00002,334,720
9Feb 6, 2026 04:03199,073193,541,561175,184,00002,277,376
10Feb 6, 2026 04:05199,300206,996,960175,384,00002,326,528
11Feb 6, 2026 04:04219,341215,841,395191,020,0002,000,0002,326,528
12Feb 6, 2026 04:07220,464218,337,561193,008,0001,000,0002,277,376