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

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 21:447,41513,998,0926,526,00002,113,536
2Jun 8, 2026 21:447,41514,073,8906,526,00002,113,536
3Jun 8, 2026 21:447,43014,042,3856,539,00002,113,536
4Jun 8, 2026 21:447,49214,030,1606,593,00002,113,536
5Jun 8, 2026 21:447,50214,090,6396,602,00002,113,536
6Jun 8, 2026 21:447,50914,086,0666,608,00002,113,536
7Jun 8, 2026 21:447,51013,984,8536,609,00002,113,536
8Jun 8, 2026 21:447,52614,043,5286,623,00002,113,536
9Jun 8, 2026 21:447,61214,381,5936,699,00002,113,536