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 3, 2026 03:52Victor MerckléVictor MerckléScore: 4,506Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 03:554,38111,741,4153,856,00002,117,632stderr
2Jul 3, 2026 03:554,40111,643,6493,873,00002,117,632stderr
3Jul 3, 2026 03:554,42011,671,5133,890,00002,117,632stderr
4Jul 3, 2026 03:554,42811,627,9853,897,00002,117,632stderr
5Jul 3, 2026 03:554,50611,647,8273,966,00002,117,632stderr
6Jul 3, 2026 03:554,51011,669,0013,969,00002,117,632stderr
7Jul 3, 2026 03:554,53512,042,9043,991,00002,117,632stderr
8Jul 3, 2026 03:554,54612,021,9324,001,00002,117,632stderr
9Jul 3, 2026 03:554,56812,022,9794,020,00002,117,632stderr