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 listJan 13, 2026 23:44vahookvahookScore: 4,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 23:434,68424,850,6892,061,0002,061,0002,494,464
2Jan 13, 2026 23:434,69823,529,2702,067,0002,067,0002,498,560
3Jan 13, 2026 23:434,71119,057,8042,073,0002,073,0002,277,376
4Jan 13, 2026 23:434,72324,824,0492,078,0002,078,0002,277,376
5Jan 13, 2026 23:434,72719,602,3252,080,0002,080,0002,277,376
6Jan 13, 2026 23:454,73223,576,7532,082,0002,082,0002,498,560
7Jan 13, 2026 23:444,73619,688,1842,084,0002,084,0002,494,464
8Jan 13, 2026 23:454,73618,382,9692,084,0002,084,0002,498,560
9Jan 13, 2026 23:444,73921,255,3742,085,0002,085,0002,277,376
10Jan 13, 2026 23:434,74517,575,0862,088,0002,088,0002,535,424
11Jan 13, 2026 23:444,74519,213,8982,088,0002,088,0002,494,464
12Jan 13, 2026 23:434,75019,102,7702,090,0002,090,0002,277,376
13Jan 13, 2026 23:434,75920,902,0492,094,0002,094,0002,277,376
14Jan 13, 2026 23:434,78816,683,1473,160,0001,053,0002,535,424
15Jan 13, 2026 23:454,81019,811,1003,175,0001,058,0002,506,752