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 listJun 27, 2026 05:27Victor MerckléVictor MerckléScore: 5,202Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 05:295,06412,076,6924,457,00002,117,632
2Jun 27, 2026 05:295,07112,112,4334,463,00002,117,632
3Jun 27, 2026 05:295,08911,917,6614,479,00002,117,632
4Jun 27, 2026 05:295,19412,195,8554,571,00002,117,632
5Jun 27, 2026 05:295,20212,235,5614,578,00002,117,632
6Jun 27, 2026 05:295,22012,188,8604,594,00002,117,632
7Jun 27, 2026 05:295,23212,206,1094,605,00002,117,632
8Jun 27, 2026 05:295,23212,311,5544,605,00002,117,632
9Jun 27, 2026 05:295,31212,406,1824,675,00002,117,632