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 listJan 23, 2026 04:04Josu San MartinJosu San MartinScore: 12,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2026 04:0412,70631,679,3829,148,0002,033,0002,285,568
2Jan 18, 2026 05:1812,71726,443,3269,157,0002,034,0002,433,024
3Jan 18, 2026 05:1812,72229,107,8779,160,0002,035,0002,289,664
4Jan 18, 2026 05:1812,75827,468,9389,186,0002,041,0002,285,568
5Jan 23, 2026 04:0412,76627,976,9019,192,0002,042,0002,289,664
6Jan 23, 2026 04:0412,92628,109,3028,273,0003,102,0002,473,984