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 19:17zielajzielajScore: 3,315Success
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 19:183,09019,204,1252,719,00002,424,832
2Feb 28, 2026 19:183,10822,551,6342,735,00002,424,832
3Feb 28, 2026 19:193,10819,140,0352,735,00002,416,640
4Feb 28, 2026 19:173,11422,258,6732,740,00002,416,640
5Feb 28, 2026 19:193,12016,703,4142,746,00002,424,832
6Feb 28, 2026 19:183,12216,442,9732,747,00002,416,640
7Feb 28, 2026 19:173,13117,836,3242,755,00002,416,640
8Feb 28, 2026 19:173,13419,927,8752,758,00002,428,928
9Feb 28, 2026 19:183,30819,811,9251,941,000970,0002,428,928
10Feb 28, 2026 19:193,31419,621,696972,0001,944,0002,535,424
11Feb 28, 2026 19:193,31523,765,9702,917,00002,277,376
12Feb 28, 2026 19:183,31524,926,2851,945,000972,0002,277,376
13Feb 28, 2026 19:173,31720,896,3971,946,000973,0002,420,736
14Feb 28, 2026 19:183,31818,678,7652,920,00002,420,736
15Feb 28, 2026 19:173,32218,449,6691,949,000974,0002,420,736
16Feb 28, 2026 19:193,32223,926,8271,949,000974,0002,416,640
17Feb 28, 2026 19:183,32224,022,4901,949,000974,0002,424,832
18Feb 28, 2026 19:193,32520,285,9822,926,00002,424,832
19Feb 28, 2026 19:173,59821,699,5192,111,0001,055,0002,420,736
20Feb 28, 2026 19:183,84316,345,2202,255,0001,127,0002,416,640
21Feb 28, 2026 19:183,85620,654,4033,393,00002,424,832