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 9, 2026 11:45Victor MerckléVictor MerckléScore: 3,597Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 11:483,57611,042,8083,147,00002,117,632stderr
2Jul 9, 2026 11:483,57911,050,8993,150,00002,117,632stderr
3Jul 9, 2026 11:483,58111,081,0083,152,00002,117,632stderr
4Jul 9, 2026 11:483,58611,021,4403,156,00002,117,632stderr
5Jul 9, 2026 11:483,59711,020,0993,166,00002,117,632stderr
6Jul 9, 2026 11:483,68511,075,4743,243,00002,117,632stderr
7Jul 9, 2026 11:483,68811,053,2063,246,00002,117,632stderr
8Jul 9, 2026 11:483,69011,047,3463,248,00002,117,632stderr
9Jul 9, 2026 11:483,71111,202,9743,266,00002,117,632stderr