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 listJan 10, 2025 01:03zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:1408,396,1721,034,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:1408,367,8831,094,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:1408,372,4421,082,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 01:033,46719,635,1962,034,0001,017,0002,506,752
5Jan 10, 2025 01:033,49219,240,5592,049,0001,024,0002,285,568
6Jan 10, 2025 01:033,63220,582,0371,065,0002,131,0002,289,664