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 28, 2026 01:30zielajzielajScore: 3,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2026 01:293,12518,679,5212,750,00002,424,832
2Feb 28, 2026 01:303,15716,737,4752,778,00002,416,640
3Feb 28, 2026 01:293,15924,924,9262,780,00002,428,928
4Feb 28, 2026 01:293,16022,510,9732,781,00002,531,328
5Feb 28, 2026 01:313,16623,112,9682,786,00002,277,376
6Feb 28, 2026 01:293,17019,606,9952,790,00002,420,736
7Feb 28, 2026 01:303,17219,413,3952,791,00002,416,640
8Feb 28, 2026 01:293,29422,307,718966,0001,933,0002,416,640
9Feb 28, 2026 01:293,30723,708,2981,940,000970,0002,416,640
10Feb 28, 2026 01:313,31120,035,8501,943,000971,0002,424,832
11Feb 28, 2026 01:303,32019,650,8522,922,00002,424,832
12Feb 28, 2026 01:293,32424,426,4861,950,000975,0002,420,736
13Feb 28, 2026 01:293,32419,867,4882,925,00002,428,928
14Feb 28, 2026 01:293,33117,297,8421,954,000977,0002,420,736
15Feb 28, 2026 01:293,33224,253,9311,955,000977,0002,420,736
16Feb 28, 2026 01:303,33418,020,2312,934,00002,420,736
17Feb 28, 2026 01:303,34418,220,3691,962,000981,0002,416,640
18Feb 28, 2026 01:313,57623,749,2052,098,0001,049,0002,277,376
19Feb 28, 2026 01:303,66618,112,0032,151,0001,075,0002,424,832
20Feb 28, 2026 01:303,71419,815,1303,268,00002,285,568
21Feb 28, 2026 01:303,77417,864,5623,321,00002,424,832
22Feb 28, 2026 01:293,78314,705,1003,329,00002,424,832
23Feb 28, 2026 01:293,89018,555,5043,423,00002,424,832
24Feb 28, 2026 01:304,14421,126,7683,647,00002,420,736