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 00:27Victor MerckléVictor MerckléScore: 3,718Success
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 00:303,61111,058,5783,178,00002,117,632stderr
2Jul 8, 2026 00:303,61511,053,5893,182,00002,117,632stderr
3Jul 8, 2026 00:303,71411,075,9273,269,00002,117,632stderr
4Jul 8, 2026 00:303,71511,102,4223,270,00002,117,632stderr
5Jul 8, 2026 00:303,71811,061,9443,272,00002,117,632stderr
6Jul 8, 2026 00:303,72111,595,8373,275,00002,125,824stderr
7Jul 8, 2026 00:303,73011,581,7923,283,00002,117,632stderr
8Jul 8, 2026 00:303,73611,088,2563,288,00002,117,632stderr
9Jul 8, 2026 00:303,73811,125,3753,290,00002,117,632stderr