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 24, 2026 08:35olliecrowolliecrowScore: 125,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 24, 2026 08:36124,690127,958,860107,733,0001,995,0002,355,200stderr
2Apr 24, 2026 08:36125,304127,098,210109,266,0001,002,0002,506,752stderr
3Apr 24, 2026 08:36125,404128,259,867109,353,0001,003,0002,322,432stderr
4Apr 24, 2026 08:36125,406128,196,196108,352,0002,006,0002,519,040stderr
5Apr 24, 2026 08:36125,489125,982,197109,428,0001,003,0002,514,944stderr
6Apr 24, 2026 08:36125,639129,244,748109,558,0001,005,0002,523,136stderr
7Apr 24, 2026 08:36125,852124,277,660108,755,0001,995,0002,514,944stderr
8Apr 24, 2026 08:36126,334125,138,509109,171,0002,003,0002,510,848stderr
9Apr 24, 2026 08:36126,361128,901,121109,195,0002,003,0002,523,136stderr