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 5, 2026 14:56Victor MerckléVictor MerckléScore: 4,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 14:594,38811,732,6333,862,00002,117,632stderr
2Jul 5, 2026 14:594,41211,732,7693,883,00002,117,632stderr
3Jul 5, 2026 14:594,42911,783,3523,898,00002,117,632stderr
4Jul 5, 2026 14:594,43411,783,3813,902,00002,117,632stderr
5Jul 5, 2026 14:594,51811,788,1653,976,00002,117,632stderr
6Jul 5, 2026 14:594,53811,764,0173,994,00002,125,824stderr
7Jul 5, 2026 14:594,56311,829,8824,016,00002,117,632stderr
8Jul 5, 2026 14:594,57211,794,9474,024,00002,125,824stderr
9Jul 5, 2026 14:594,89212,174,3154,305,00002,117,632stderr