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 6, 2026 01:09zielajzielajScore: 3,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2026 01:153,37820,988,4011,982,000991,0002,359,296
2Jan 25, 2026 01:153,38924,718,5161,988,000994,0002,359,296
3Jan 25, 2026 23:333,39317,507,4101,991,000995,0002,359,296
4Feb 6, 2026 01:093,41919,268,6702,006,0001,003,0002,359,296
5Jan 25, 2026 01:153,42021,714,6942,007,0001,003,0002,277,376
6Jan 25, 2026 23:333,45820,978,8952,029,0001,014,0002,347,008
7Jan 25, 2026 23:333,55015,620,3362,083,0001,041,0002,363,392
8Feb 6, 2026 01:094,20817,491,8262,469,0001,234,0002,355,200
9Feb 6, 2026 01:094,45224,795,6201,959,0001,959,0002,535,424