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 29, 2026 00:19olliecrowolliecrowScore: 19,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 00:2219,29533,972,55414,983,0001,997,0002,510,848
2Apr 29, 2026 00:2219,34324,924,79315,020,0002,002,0002,519,040
3Apr 29, 2026 00:2219,47025,126,85114,111,0003,023,0002,531,328
4Apr 29, 2026 00:2219,48625,315,42115,131,0002,017,0002,359,296
5Apr 29, 2026 00:2219,48925,291,41914,125,0003,026,0002,375,680
6Apr 29, 2026 00:2219,50125,045,79614,133,0003,028,0002,379,776
7Apr 29, 2026 00:2219,51225,157,42315,151,0002,020,0002,379,776
8Apr 29, 2026 00:2219,58425,223,82214,193,0003,041,0002,359,296
9Apr 29, 2026 00:2219,67525,254,66014,259,0003,055,0002,375,680