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 listApr 24, 2026 07:17olliecrowolliecrowScore: 13,092Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 07:1812,90133,011,82010,321,0001,032,0002,572,288
2Apr 24, 2026 07:1812,94231,238,53210,354,0001,035,0002,564,096
3Apr 24, 2026 07:1812,95629,469,62610,366,0001,036,0002,306,048
4Apr 24, 2026 07:1813,02229,513,84410,419,0001,041,0002,310,144
5Apr 24, 2026 07:1813,09232,944,06510,474,0001,047,0002,314,240
6Apr 24, 2026 07:1813,10132,617,00610,481,0001,048,0002,314,240
7Apr 24, 2026 07:1813,10228,011,72411,530,00002,306,048
8Apr 24, 2026 07:1813,10328,334,5699,435,0002,096,0002,301,952
9Apr 24, 2026 07:1813,10729,173,99910,487,0001,048,0002,375,680