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 10, 2026 15:39Andrew EpsteinAndrew EpsteinScore: 6,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 15:506,91015,881,4514,877,0001,204,0002,117,632
2Sep 10, 2026 15:506,91215,924,3354,881,0001,202,0002,117,632
3Sep 10, 2026 15:506,92115,885,0684,891,0001,200,0002,117,632
4Sep 10, 2026 15:506,94415,976,4964,891,0001,220,0002,117,632
5Sep 10, 2026 15:506,95015,979,0614,897,0001,219,0002,117,632
6Sep 10, 2026 15:506,95015,971,3414,897,0001,219,0002,117,632
7Sep 10, 2026 15:506,95516,049,3204,787,0001,334,0002,117,632
8Sep 10, 2026 15:506,97715,983,9374,908,0001,232,0002,117,632
9Sep 10, 2026 15:507,01116,004,9875,091,0001,079,0002,117,632