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 22, 2026 04:36olliecrowolliecrowScore: 13,638Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 04:3713,42727,924,45810,742,0001,074,0002,338,816
2Apr 22, 2026 04:3713,54031,929,1789,930,0001,986,0002,334,720
3Apr 22, 2026 04:3713,58832,692,7679,965,0001,993,0002,338,816
4Apr 22, 2026 04:3713,61230,535,8089,983,0001,996,0002,330,624
5Apr 22, 2026 04:3713,63829,337,93310,002,0002,000,0002,334,720
6Apr 22, 2026 04:3713,65029,553,71410,010,0002,002,0002,347,008
7Apr 22, 2026 04:3713,78824,861,59711,123,0001,011,0002,326,528
8Apr 22, 2026 04:3714,96833,102,16812,159,0001,013,0002,342,912
9Apr 22, 2026 04:3715,44329,582,40412,545,0001,045,0002,318,336