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 listJul 8, 2026 08:27Victor MerckléVictor MerckléScore: 3,603Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 08:303,58911,057,5383,159,00002,117,632stderr
2Jul 8, 2026 08:303,58911,043,9073,159,00002,117,632stderr
3Jul 8, 2026 08:303,59011,030,8113,160,00002,117,632stderr
4Jul 8, 2026 08:303,59511,054,3793,164,00002,117,632stderr
5Jul 8, 2026 08:303,60311,039,7023,171,00002,117,632stderr
6Jul 8, 2026 08:303,61711,065,7603,183,00002,117,632stderr
7Jul 8, 2026 08:303,69611,110,1793,253,00002,117,632stderr
8Jul 8, 2026 08:303,70211,510,5443,258,00002,117,632stderr
9Jul 8, 2026 08:303,70311,053,4613,259,00002,117,632stderr