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 23, 2026 03:42olliecrowolliecrowScore: 13,652Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 03:4313,47729,751,8909,884,0001,976,0002,342,912
2Apr 23, 2026 03:4313,48726,680,9789,891,0001,978,0002,330,624
3Apr 23, 2026 03:4313,50729,044,9709,906,0001,981,0002,338,816
4Apr 23, 2026 03:4313,57633,408,6339,956,0001,991,0002,338,816
5Apr 23, 2026 03:4313,65225,446,88310,012,0002,002,0002,330,624
6Apr 23, 2026 03:4313,71428,203,41610,058,0002,011,0002,342,912
7Apr 23, 2026 03:4313,74728,862,30710,082,0002,016,0002,318,336
8Apr 23, 2026 03:4314,72529,600,92711,962,000996,0002,334,720
9Apr 23, 2026 03:4314,84029,441,86811,051,0002,009,0002,404,352