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 26, 2026 21:42Victor MerckléVictor MerckléScore: 5,152Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 21:455,02811,942,6954,425,00002,113,536
2Jun 26, 2026 21:455,07012,017,7124,462,00002,113,536
3Jun 26, 2026 21:455,12912,137,0544,514,00002,113,536
4Jun 26, 2026 21:455,14512,282,7114,528,00002,113,536
5Jun 26, 2026 21:455,15212,005,6764,534,00002,113,536
6Jun 26, 2026 21:455,22712,387,7034,600,00002,113,536
7Jun 26, 2026 21:455,40912,634,3734,760,00002,113,536
8Jun 26, 2026 21:455,42812,242,5094,777,00002,113,536
9Jun 26, 2026 21:455,44512,347,5754,792,00002,113,536