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:45Victor MerckléVictor MerckléScore: 3,594Success
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:483,57211,044,8433,144,00002,117,632stderr
2Jul 8, 2026 08:483,57511,024,4373,146,00002,117,632stderr
3Jul 8, 2026 08:483,58011,063,4613,151,00002,117,632stderr
4Jul 8, 2026 08:483,58911,030,4483,159,00002,117,632stderr
5Jul 8, 2026 08:483,59410,966,2693,163,00002,117,632stderr
6Jul 8, 2026 08:483,67911,056,7663,238,00002,117,632stderr
7Jul 8, 2026 08:483,68111,019,3503,240,00002,117,632stderr
8Jul 8, 2026 08:483,69311,133,5313,250,00002,117,632stderr
9Jul 8, 2026 08:483,70011,469,5003,256,00002,117,632stderr