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 30, 2026 06:24Andrew EpsteinAndrew EpsteinScore: 3,911Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 30, 2026 06:263,89012,517,5603,424,000020,480
2Sep 30, 2026 06:263,89811,918,6723,431,000020,480
3Sep 30, 2026 06:263,90711,875,9483,439,000020,480
4Sep 30, 2026 06:263,90914,189,5063,440,000020,480
5Sep 30, 2026 06:263,91111,830,7193,442,000020,480
6Sep 30, 2026 06:263,91711,931,0723,447,000020,480
7Sep 30, 2026 06:263,92611,892,9733,455,000020,480
8Sep 30, 2026 06:263,93012,154,9083,459,000020,480
9Sep 30, 2026 06:263,93612,751,5333,464,000020,480