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 13:17Victor MerckléVictor MerckléScore: 4,448Success
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 13:194,41211,678,6223,883,00002,117,632stderr
2Jul 3, 2026 13:194,42811,660,3903,897,00002,117,632stderr
3Jul 3, 2026 13:194,43011,745,4523,899,00002,117,632stderr
4Jul 3, 2026 13:194,44712,112,0583,914,00002,117,632stderr
5Jul 3, 2026 13:194,44811,716,6013,915,00002,117,632stderr
6Jul 3, 2026 13:194,54811,665,9824,003,00002,117,632stderr
7Jul 3, 2026 13:194,55011,726,5104,004,00002,117,632stderr
8Jul 3, 2026 13:194,58811,834,2164,038,00002,117,632stderr
9Jul 3, 2026 13:194,75711,954,3034,187,00002,117,632stderr