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 4, 2026 16:17vahookvahookScore: 3,672Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 16:153,55721,504,9271,043,0002,087,0002,494,464
2Feb 4, 2026 16:173,58124,473,2831,050,0002,101,0002,506,752
3Feb 4, 2026 16:153,58616,797,8681,052,0002,104,0002,502,656
4Feb 4, 2026 16:153,59018,482,1221,053,0002,106,0002,498,560
5Feb 4, 2026 16:153,59119,514,1671,053,0002,107,0002,494,464
6Feb 4, 2026 16:173,59820,201,2751,055,0002,111,0002,506,752
7Feb 4, 2026 16:153,60024,008,2861,056,0002,112,0002,502,656
8Feb 4, 2026 16:153,60118,666,1391,056,0002,113,0002,494,464
9Feb 4, 2026 16:173,61019,152,7511,059,0002,118,0002,502,656
10Feb 4, 2026 16:203,63918,455,1771,067,0002,135,0002,498,560
11Feb 4, 2026 16:173,64519,156,4192,139,0001,069,0002,498,560
12Feb 4, 2026 16:153,65917,384,8681,073,0002,147,0002,494,464
13Feb 4, 2026 16:173,67215,472,8332,154,0001,077,0002,498,560
14Feb 4, 2026 16:203,67821,125,9931,079,0002,158,0002,498,560
15Feb 4, 2026 16:203,67816,266,2772,158,0001,079,0002,498,560
16Feb 4, 2026 16:173,67817,239,4381,079,0002,158,0002,494,464
17Feb 4, 2026 16:173,68320,669,6672,161,0001,080,0002,486,272
18Feb 4, 2026 16:153,69020,755,3842,165,0001,082,0002,498,560
19Feb 4, 2026 16:173,69517,497,1002,168,0001,084,0002,486,272
20Feb 4, 2026 16:173,69519,860,3022,168,0001,084,0002,277,376
21Feb 4, 2026 16:173,69917,305,4072,170,0001,085,0002,277,376
22Feb 4, 2026 16:153,69919,881,5022,170,0001,085,0002,502,656
23Feb 4, 2026 16:173,70918,983,6872,176,0001,088,0002,535,424
24Feb 4, 2026 16:173,74717,727,4352,198,0001,099,0002,494,464