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 19:42Victor MerckléVictor MerckléScore: 5,150Success
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 19:445,13412,030,1314,518,00002,113,536
2Jun 26, 2026 19:445,13611,959,5664,520,00002,113,536
3Jun 26, 2026 19:445,14512,169,9024,528,00002,113,536
4Jun 26, 2026 19:445,14612,029,4394,529,00002,113,536
5Jun 26, 2026 19:445,15012,002,4524,532,00002,113,536
6Jun 26, 2026 19:445,15412,266,5794,536,00002,113,536
7Jun 26, 2026 19:445,18912,358,3544,567,00002,113,536
8Jun 26, 2026 19:445,19012,043,6564,568,00002,113,536
9Jun 26, 2026 19:445,22912,425,8994,602,00002,113,536