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 8, 2026 01:15zielajzielajScore: 3,502Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 01:163,35621,425,9861,969,000984,0002,351,104
2Feb 8, 2026 01:163,38919,811,1081,988,000994,0002,347,008
3Feb 8, 2026 01:153,40020,319,089997,0001,995,0002,347,008
4Feb 8, 2026 01:163,44319,310,8681,010,0002,020,0002,351,104
5Feb 8, 2026 01:153,50221,441,7761,027,0002,055,0002,342,912
6Feb 8, 2026 01:163,50220,716,0702,055,0001,027,0002,347,008
7Feb 8, 2026 01:163,55019,351,4092,083,0001,041,0002,351,104
8Feb 8, 2026 01:163,69321,566,8393,250,00002,347,008
9Feb 8, 2026 01:153,75816,632,7002,205,0001,102,0002,506,752