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 9, 2026 02:08zielajzielajScore: 3,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 9, 2026 02:073,42619,410,2342,010,0001,005,0002,408,448
2Feb 9, 2026 02:073,43020,645,3002,012,0001,006,0002,412,544
3Feb 9, 2026 02:093,43117,056,1372,013,0001,006,0002,408,448
4Feb 9, 2026 02:093,44119,487,3102,019,0001,009,0002,412,544
5Feb 9, 2026 02:083,44818,761,5172,023,0001,011,0002,408,448
6Feb 9, 2026 02:094,10825,052,7603,615,00002,404,352
7Feb 9, 2026 02:084,16317,038,8063,663,00002,408,448
8Feb 9, 2026 02:084,26720,032,1223,755,00002,404,352
9Feb 9, 2026 02:074,31421,625,9253,796,00002,400,256