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 21, 2026 22:05BenBenScore: 44,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 22:0644,63756,503,76235,253,0004,028,0002,453,504
2Apr 21, 2026 22:0644,66954,138,99835,278,0004,031,0002,338,816
3Apr 21, 2026 22:0644,67362,035,02635,281,0004,032,0002,342,912
4Apr 21, 2026 22:0644,71952,559,61836,326,0003,027,0002,449,408
5Apr 21, 2026 22:0644,72256,417,42135,320,0004,036,0002,330,624
6Apr 21, 2026 22:0644,74355,241,65035,336,0004,038,0002,457,600
7Apr 21, 2026 22:0644,78758,442,75836,382,0003,031,0002,510,848
8Apr 21, 2026 22:0644,86157,425,97137,454,0002,024,0002,445,312
9Apr 21, 2026 22:0644,86256,708,60936,443,0003,036,0002,510,848