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 listJul 19, 2025 22:19vahookvahookScore: 11,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2025 22:1911,34225,874,1538,983,000998,0002,494,464
2Jul 19, 2025 22:1911,35926,146,5778,997,000999,0002,273,280
3Jul 19, 2025 22:1911,36726,842,6849,003,0001,000,0002,494,464
4Jul 19, 2025 22:1911,36925,615,4939,005,0001,000,0002,273,280
5Jul 19, 2025 22:1911,37827,991,3899,012,0001,001,0002,482,176
6Jul 19, 2025 22:1911,38322,964,7349,016,0001,001,0002,273,280
7Jul 19, 2025 22:1911,40727,653,7619,035,0001,003,0002,502,656
8Jul 19, 2025 22:1911,41130,601,9729,038,0001,004,0002,498,560
9Jul 19, 2025 22:1911,48624,363,7039,098,0001,010,0002,490,368