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 17:03zielajzielajScore: 3,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 17:013,32522,053,3481,951,000975,0002,351,104
2Feb 7, 2026 17:033,32617,533,5502,927,00002,342,912
3Feb 7, 2026 17:023,33220,730,0781,955,000977,0002,342,912
4Feb 7, 2026 17:153,33517,975,2551,957,000978,0002,342,912
5Feb 7, 2026 17:013,34119,666,0301,960,000980,0002,351,104
6Feb 7, 2026 17:033,34518,894,0861,963,000981,0002,355,200
7Feb 7, 2026 17:033,34822,583,6902,946,00002,351,104
8Feb 7, 2026 17:013,35122,334,5142,949,00002,347,008
9Feb 7, 2026 17:013,35619,870,7811,969,000984,0002,347,008
10Feb 7, 2026 17:013,36821,236,8771,976,000988,0002,342,912
11Feb 7, 2026 17:023,36817,189,8951,976,000988,0002,347,008
12Feb 7, 2026 17:153,37317,216,5801,979,000989,0002,347,008
13Feb 7, 2026 17:033,38615,264,8711,987,000993,0002,277,376
14Feb 7, 2026 17:033,39218,908,6881,990,000995,0002,342,912
15Feb 7, 2026 17:033,39521,029,1741,992,000996,0002,535,424
16Feb 7, 2026 17:033,39919,070,153997,0001,994,0002,351,104
17Feb 7, 2026 17:033,40224,456,2481,996,000998,0002,338,816
18Feb 7, 2026 17:033,40920,865,0982,000,0001,000,0002,347,008
19Feb 7, 2026 17:013,42722,377,4392,011,0001,005,0002,342,912
20Feb 7, 2026 17:033,44822,134,3442,023,0001,011,0002,338,816
21Feb 7, 2026 17:023,48417,444,4642,044,0001,022,0002,277,376
22Feb 7, 2026 17:033,76319,081,8933,311,00002,338,816
23Feb 7, 2026 17:154,23922,510,2573,730,00002,351,104
24Feb 7, 2026 17:034,45123,582,2882,938,000979,0002,351,104