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 19:11vahookvahookScore: 3,376Success
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 19:113,32720,841,936976,0001,952,0002,498,560
2Feb 7, 2026 19:113,34120,691,435980,0001,960,0002,502,656
3Feb 7, 2026 19:113,34523,276,610981,0001,963,0002,494,464
4Feb 7, 2026 19:103,34916,778,495982,0001,965,0002,490,368
5Feb 7, 2026 19:103,35518,265,0441,476,0001,476,0002,277,376
6Feb 7, 2026 19:103,36120,471,2281,479,0001,479,0002,506,752
7Feb 7, 2026 19:103,36522,245,932987,0001,974,0002,494,464
8Feb 7, 2026 19:113,36518,220,019987,0001,974,0002,277,376
9Feb 7, 2026 19:103,37623,784,876990,0001,981,0002,277,376
10Feb 7, 2026 19:103,37623,502,698990,0001,981,0002,502,656
11Feb 7, 2026 19:113,38219,726,368992,0001,984,0002,502,656
12Feb 7, 2026 19:103,38520,788,691993,0001,986,0002,486,272
13Feb 7, 2026 19:103,39016,220,347994,0001,989,0002,490,368
14Feb 7, 2026 19:113,39021,203,306994,0001,989,0002,494,464
15Feb 7, 2026 19:103,39321,606,684995,0001,991,0002,498,560
16Feb 7, 2026 19:113,39319,738,719995,0001,991,0002,494,464
17Feb 7, 2026 19:113,39918,564,640997,0001,994,0002,490,368
18Feb 7, 2026 19:113,46015,715,3141,015,0002,030,0002,535,424