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:37vahookvahookScore: 3,666Success
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:373,54219,776,8981,039,0002,078,0002,277,376
2Feb 4, 2026 16:373,59716,388,8021,055,0002,110,0002,486,272
3Feb 4, 2026 16:373,65223,555,7511,071,0002,143,0002,502,656
4Feb 4, 2026 16:373,66317,653,6771,074,0002,149,0002,277,376
5Feb 4, 2026 16:373,66616,933,4651,075,0002,151,0002,502,656
6Feb 4, 2026 16:373,67218,840,6212,154,0001,077,0002,498,560
7Feb 4, 2026 16:373,69022,989,7002,165,0001,082,0002,494,464
8Feb 4, 2026 16:373,71316,704,1782,178,0001,089,0002,498,560
9Feb 4, 2026 16:373,91021,902,7992,294,0001,147,0002,494,464