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 26, 2026 23:22zielajzielajScore: 3,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2025 21:563,36621,096,6531,975,000987,0002,355,200
2Aug 6, 2025 21:563,38625,176,5091,987,000993,0002,363,392
3Jan 16, 2026 02:123,38921,471,5821,988,000994,0002,359,296
4Jan 16, 2026 01:113,39020,803,4991,989,000994,0002,277,376
5Jan 16, 2026 01:113,40221,136,4831,996,000998,0002,277,376
6Jan 16, 2026 01:113,41315,633,5322,002,0001,001,0002,510,848
7Jan 16, 2026 02:133,41619,972,7932,004,0001,002,0002,535,424
8Jan 16, 2026 02:123,44020,577,8322,018,0001,009,0002,355,200
9Jan 16, 2026 02:133,44819,498,2612,023,0001,011,0002,371,584
10Jan 26, 2026 23:223,45820,954,4682,029,0001,014,0002,473,984
11Jan 16, 2026 02:123,47517,684,3331,019,0002,039,0002,351,104
12Jan 26, 2026 23:223,47820,675,7182,041,0001,020,0002,355,200
13Jan 26, 2026 23:223,54218,375,9262,078,0001,039,0002,355,200
14Jan 16, 2026 02:133,55920,301,8702,088,0001,044,0002,355,200
15Aug 6, 2025 21:564,25019,726,7963,740,00002,359,296