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 listOct 9, 2026 04:22Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 04:2708,884,077472,000024,576expected "51211713421247 ", got "0 "
2Oct 9, 2026 04:27011,001,970465,000024,576expected "51140641276543 ", got "0 "
3Oct 9, 2026 04:2709,226,129456,000024,576expected "51483720309391 ", got "0 "