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 00:19vahookvahookScore: 3,832Success
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 00:193,77515,829,3642,215,0001,107,0002,502,656
2Feb 4, 2026 00:193,82324,263,7132,243,0001,121,0002,494,464
3Feb 4, 2026 00:193,82321,149,4122,243,0001,121,0002,494,464
4Feb 4, 2026 00:193,82825,845,6702,246,0001,123,0002,494,464
5Feb 4, 2026 00:193,83221,758,8552,248,0001,124,0002,494,464
6Feb 4, 2026 00:193,84218,798,8912,254,0001,127,0002,498,560
7Feb 4, 2026 00:193,86915,296,4642,270,0001,135,0002,486,272
8Feb 4, 2026 00:193,90823,796,5322,293,0001,146,0002,277,376
9Feb 4, 2026 00:193,91722,398,5902,298,0001,149,0002,277,376