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 7, 2026 03:54zielajzielajScore: 3,392Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 04:333,32416,743,1182,925,00002,347,008
2Feb 6, 2026 04:303,34217,173,1781,961,000980,0002,347,008
3Feb 6, 2026 04:293,34520,832,6692,944,00002,351,104
4Feb 6, 2026 04:303,34518,305,5141,963,000981,0002,347,008
5Feb 6, 2026 04:303,35217,839,8031,967,000983,0002,347,008
6Feb 6, 2026 04:303,35519,702,2331,968,000984,0002,351,104
7Feb 7, 2026 03:473,35617,154,1921,969,000984,0002,347,008
8Feb 6, 2026 04:303,35819,892,5971,970,000985,0002,527,232
9Feb 6, 2026 04:293,35818,641,0771,970,000985,0002,347,008
10Feb 6, 2026 04:293,35919,600,8391,971,000985,0002,347,008
11Feb 6, 2026 04:333,36124,794,2541,972,000986,0002,342,912
12Feb 6, 2026 04:293,36816,553,5621,976,000988,0002,347,008
13Feb 6, 2026 04:283,36916,458,3811,977,000988,0002,347,008
14Feb 6, 2026 04:333,37524,458,2591,980,000990,0002,351,104
15Feb 7, 2026 03:473,37619,958,6511,981,000990,0002,342,912
16Feb 6, 2026 05:173,37618,981,5451,981,000990,0002,465,792
17Feb 6, 2026 04:283,37817,352,6821,982,000991,0002,351,104
18Feb 6, 2026 04:293,37821,078,2521,982,000991,0002,347,008
19Feb 6, 2026 04:303,39021,223,6961,989,000994,0002,277,376
20Feb 6, 2026 04:523,39219,173,2481,990,000995,0002,523,136
21Feb 6, 2026 04:303,43316,050,2332,014,0001,007,0002,338,816
22Feb 7, 2026 03:203,43818,225,2412,017,0001,008,0002,347,008
23Feb 6, 2026 04:293,45315,276,2601,013,0002,026,0002,342,912
24Feb 6, 2026 04:523,45720,980,7942,028,0001,014,0002,347,008
25Feb 6, 2026 04:293,46120,326,5761,015,0002,031,0002,347,008
26Feb 6, 2026 05:173,46118,692,5701,015,0002,031,0002,342,912
27Feb 7, 2026 03:543,46719,369,9151,017,0002,034,0002,347,008
28Feb 7, 2026 03:203,47216,963,4982,037,0001,018,0002,277,376
29Feb 7, 2026 03:543,47422,195,8162,038,0001,019,0002,535,424
30Feb 7, 2026 03:203,49119,790,9012,048,0001,024,0002,342,912
31Feb 7, 2026 03:543,50215,916,3282,055,0001,027,0002,351,104
32Feb 6, 2026 04:303,50220,879,3672,055,0001,027,0002,347,008
33Feb 6, 2026 04:293,50622,848,5902,057,0001,028,0002,351,104
34Feb 6, 2026 04:293,52520,686,4912,068,0001,034,0002,449,408
35Feb 6, 2026 04:283,82317,272,1062,243,0001,121,0002,351,104
36Feb 6, 2026 04:304,17018,867,1692,447,0001,223,0002,342,912
37Feb 7, 2026 03:474,22319,854,7313,716,00002,347,008
38Feb 6, 2026 04:524,22816,819,4612,481,0001,240,0002,334,720
39Feb 6, 2026 05:174,29123,256,5273,776,00002,342,912