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 27, 2026 15:28Victor MerckléVictor MerckléScore: 6,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 15:346,46114,897,4604,227,0001,459,0002,179,072
2Jun 27, 2026 15:346,46814,743,4464,276,0001,416,0002,179,072
3Jun 27, 2026 15:346,48214,791,0584,212,0001,493,0002,134,016
4Jun 27, 2026 15:346,50914,780,1874,260,0001,468,0002,134,016
5Jun 27, 2026 15:346,51814,817,1194,310,0001,426,0002,134,016
6Jun 27, 2026 15:346,52514,765,9704,367,0001,375,0002,134,016
7Jun 27, 2026 15:346,57215,002,1114,354,0001,430,0002,134,016
8Jun 27, 2026 15:346,57914,889,9854,291,0001,499,0002,134,016
9Jun 27, 2026 15:346,90315,095,4294,576,0001,499,0002,134,016