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 17, 2026 05:53Josu San MartinJosu San MartinScore: 38,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:5338,51656,715,37932,898,000996,0002,453,504
2Jan 17, 2026 05:5338,52560,586,40031,908,0001,994,0002,420,736
3Jan 17, 2026 05:5338,53260,342,83933,908,00002,281,472
4Jan 17, 2026 05:5338,54158,019,78331,861,0002,055,0002,514,944
5Jan 17, 2026 05:5338,54859,546,22531,927,0001,995,0002,445,312
6Jan 17, 2026 05:5338,56155,674,85231,938,0001,996,0002,445,312
7Jan 17, 2026 05:5338,57556,662,40431,950,0001,996,0002,449,408
8Jan 17, 2026 05:5338,58559,126,89731,958,0001,997,0002,457,600
9Jan 17, 2026 05:5338,62054,669,58031,987,0001,999,0002,416,640
10Jan 17, 2026 05:5338,62460,607,01131,990,0001,999,0002,457,600
11Jan 17, 2026 05:5338,65753,799,97632,017,0002,001,0002,461,696
12Jan 17, 2026 05:5338,66356,362,69332,022,0002,001,0002,514,944
13Jan 17, 2026 05:5338,68055,414,09132,036,0002,002,0002,453,504
14Jan 17, 2026 05:5338,68458,324,92432,040,0002,002,0002,445,312
15Jan 17, 2026 05:5338,68956,425,60332,044,0002,002,0002,514,944
16Jan 17, 2026 05:5338,73555,793,94032,082,0002,005,0002,445,312
17Jan 17, 2026 05:5338,75552,246,61733,101,0001,003,0002,449,408
18Jan 17, 2026 05:5338,85355,545,05633,186,0001,005,0002,445,312