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 26, 2026 04:27olliecrowolliecrowScore: 13,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:2813,27727,965,49710,622,0001,062,0002,334,720
2Apr 26, 2026 04:2813,31229,318,72910,650,0001,065,0002,326,528
3Apr 26, 2026 04:2813,45532,199,1839,868,0001,973,0002,330,624
4Apr 26, 2026 04:2813,49028,680,99110,883,000989,0002,347,008
5Apr 26, 2026 04:2813,61428,819,42810,983,000998,0002,338,816
6Apr 26, 2026 04:2813,62933,774,5849,995,0001,999,0002,338,816
7Apr 26, 2026 04:2813,70228,379,16310,049,0002,009,0002,326,528
8Apr 26, 2026 04:2814,72129,079,54111,876,0001,079,0002,338,816
9Apr 26, 2026 04:2814,74526,496,15710,980,0001,996,0002,338,816