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 22, 2026 20:29zielajzielajScore: 3,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 20:283,06820,549,8192,700,00002,424,832
2Feb 22, 2026 20:293,07720,869,2192,708,00002,437,120
3Feb 22, 2026 20:283,08519,409,6602,715,00002,424,832
4Feb 22, 2026 20:293,09424,351,2722,723,00002,424,832
5Feb 22, 2026 20:293,09817,774,0422,726,00002,420,736
6Feb 22, 2026 20:273,10623,062,5592,733,00002,424,832
7Feb 22, 2026 20:273,10725,546,2632,734,00002,424,832
8Feb 22, 2026 20:293,11816,288,2522,744,00002,277,376
9Feb 22, 2026 20:273,13020,387,6602,754,00002,428,928
10Feb 22, 2026 20:293,13119,934,7342,755,00002,424,832
11Feb 22, 2026 20:283,14416,335,5522,767,00002,535,424
12Feb 22, 2026 20:293,14920,681,9072,771,00002,424,832
13Feb 22, 2026 20:293,16723,647,7972,787,00002,428,928
14Feb 22, 2026 20:293,31122,812,8311,943,000971,0002,420,736
15Feb 22, 2026 20:283,31423,424,6451,944,000972,0002,420,736
16Feb 22, 2026 20:273,31518,698,8041,945,000972,0002,420,736
17Feb 22, 2026 20:293,31920,106,5832,921,00002,428,928
18Feb 22, 2026 20:293,32224,688,1562,923,00002,424,832
19Feb 22, 2026 20:293,32515,648,2691,951,000975,0002,428,928
20Feb 22, 2026 20:273,33024,717,9942,930,00002,519,040
21Feb 22, 2026 20:283,59419,868,9792,109,0001,054,0002,420,736
22Feb 22, 2026 20:273,64120,066,3182,136,0001,068,0002,420,736
23Feb 22, 2026 20:283,68022,061,2062,159,0001,079,0002,277,376
24Feb 22, 2026 20:293,70019,719,2253,256,00002,428,928