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 listSep 29, 2026 21:42Andrew EpsteinAndrew EpsteinScore: 249,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 21:44249,146228,092,013218,246,0001,003,0002,125,824stderr
2Sep 29, 2026 21:44249,214228,808,502218,307,0001,002,0002,125,824stderr
3Sep 29, 2026 21:44249,414228,426,738218,482,0001,003,0002,125,824stderr
4Sep 29, 2026 21:44249,481229,061,676218,541,0001,003,0002,125,824stderr
5Sep 29, 2026 21:44249,489228,420,820218,548,0001,003,0002,125,824stderr
6Sep 29, 2026 21:44249,506230,190,856218,562,0001,004,0002,125,824stderr
7Sep 29, 2026 21:44249,719228,645,411218,748,0001,005,0002,125,824stderr
8Sep 29, 2026 21:44249,735228,747,077218,765,0001,002,0002,125,824stderr
9Sep 29, 2026 21:44249,847228,723,920218,864,0001,002,0002,125,824stderr