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 9, 2026 19:38Victor MerckléVictor MerckléScore: 3,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 19:413,59211,064,3053,161,00002,117,632stderr
2Jul 9, 2026 19:413,59811,158,0633,167,00002,117,632stderr
3Jul 9, 2026 19:413,60211,116,8533,170,00002,117,632stderr
4Jul 9, 2026 19:413,61411,071,0533,181,00002,117,632stderr
5Jul 9, 2026 19:413,69011,083,8253,248,00002,117,632stderr
6Jul 9, 2026 19:413,69211,053,9353,249,00002,117,632stderr
7Jul 9, 2026 19:413,69811,163,7473,255,00002,117,632stderr
8Jul 9, 2026 19:413,69811,076,0983,255,00002,117,632stderr
9Jul 9, 2026 19:413,71211,061,3133,267,00002,117,632stderr