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 23, 2026 15:53Victor MerckléVictor MerckléScore: 5,253Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 15:565,13212,015,0314,517,00002,113,536
2Jun 23, 2026 15:565,19512,092,7534,572,00002,113,536
3Jun 23, 2026 15:565,24612,024,5534,617,00002,113,536
4Jun 23, 2026 15:565,25112,039,1654,621,00002,113,536
5Jun 23, 2026 15:565,25312,038,9544,623,00002,113,536
6Jun 23, 2026 15:565,27912,067,0754,646,00002,113,536
7Jun 23, 2026 15:565,32012,151,3144,682,00002,113,536
8Jun 23, 2026 15:565,32612,409,5854,687,00002,113,536
9Jun 23, 2026 15:565,37112,161,5914,727,00002,113,536