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 04:02Victor MerckléVictor MerckléScore: 4,538Success
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 04:044,40211,687,8733,874,00002,117,632stderr
2Jul 3, 2026 04:044,40511,664,8143,877,00002,117,632stderr
3Jul 3, 2026 04:044,41911,604,8673,889,00002,117,632stderr
4Jul 3, 2026 04:044,52511,729,2713,982,00002,117,632stderr
5Jul 3, 2026 04:044,53811,678,3263,994,00002,117,632stderr
6Jul 3, 2026 04:044,55112,053,0134,005,00002,117,632stderr
7Jul 3, 2026 04:044,56011,733,6864,013,00002,117,632stderr
8Jul 3, 2026 04:044,94812,123,8734,355,00002,117,632stderr
9Jul 3, 2026 04:045,00112,341,4374,401,00002,117,632stderr