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 4, 2026 13:47vahookvahookScore: 3,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 13:483,70621,549,1532,174,0001,087,0002,498,560
2Feb 4, 2026 13:473,72024,853,7932,183,0001,091,0002,498,560
3Feb 4, 2026 13:483,72320,602,4902,184,0001,092,0002,277,376
4Feb 4, 2026 13:483,72420,088,0272,185,0001,092,0002,498,560
5Feb 4, 2026 13:483,72625,100,4432,186,0001,093,0002,494,464
6Feb 4, 2026 13:483,73018,502,5342,188,0001,094,0002,277,376
7Feb 4, 2026 13:483,73622,355,6602,192,0001,096,0002,494,464
8Feb 4, 2026 13:473,73824,855,6022,193,0001,096,0002,277,376
9Feb 4, 2026 13:483,74021,361,1192,194,0001,097,0002,502,656
10Feb 4, 2026 13:483,74016,391,2912,194,0001,097,0002,277,376
11Feb 4, 2026 13:473,74817,821,1632,199,0001,099,0002,535,424
12Feb 4, 2026 13:483,75321,207,1602,202,0001,101,0002,490,368