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 20, 2026 02:10zielajzielajScore: 3,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 02:093,13615,082,8492,760,00002,424,832
2Feb 20, 2026 02:093,17425,458,3042,793,00002,428,928
3Feb 20, 2026 02:093,17419,583,5622,793,00002,531,328
4Feb 20, 2026 02:103,31718,076,0172,919,00002,428,928
5Feb 20, 2026 02:093,31816,318,7071,947,000973,0002,416,640
6Feb 20, 2026 02:103,33818,852,9731,958,000979,0002,424,832
7Feb 20, 2026 02:103,33817,285,6911,958,000979,0002,433,024
8Feb 20, 2026 02:103,34317,381,3972,942,00002,424,832
9Feb 20, 2026 02:093,45019,287,2942,024,0001,012,0002,420,736
10Feb 20, 2026 02:093,61817,405,4392,123,0001,061,0002,424,832
11Feb 20, 2026 02:103,78121,230,0783,327,00002,424,832
12Feb 20, 2026 02:103,88216,488,8963,416,00002,424,832