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 30, 2026 09:02olliecrowolliecrowScore: 11,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 09:0311,78816,961,4349,337,0001,037,0002,555,904
2Apr 30, 2026 09:0311,81916,976,5949,361,0001,040,0002,334,720
3Apr 30, 2026 09:0311,88017,033,7449,410,0001,045,0002,560,000
4Apr 30, 2026 09:0311,88817,243,1049,416,0001,046,0002,555,904
5Apr 30, 2026 09:0311,98617,190,5389,494,0001,054,0002,326,528
6Apr 30, 2026 09:0312,23417,406,5679,690,0001,076,0002,502,656
7Apr 30, 2026 09:0312,28117,261,8988,647,0002,161,0002,330,624
8Apr 30, 2026 09:0312,44617,447,8308,962,0001,991,0002,535,424
9Apr 30, 2026 09:0312,76817,016,33410,215,0001,021,0002,334,720