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 16:07Karthik ReddyKarthik ReddyScore: 2,522Success
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 16:462,51410,833,8322,213,000024,576
2Oct 9, 2026 16:462,51710,820,7032,215,000024,576
3Oct 9, 2026 16:462,51810,821,4222,216,000024,576
4Oct 9, 2026 16:462,51910,787,7992,217,000024,576
5Oct 9, 2026 16:462,52215,506,2002,220,000024,576
6Oct 9, 2026 16:462,52310,733,6712,221,000024,576
7Oct 9, 2026 16:462,52910,758,0352,226,000024,576
8Oct 9, 2026 16:462,52910,911,7862,226,000024,576
9Oct 9, 2026 16:462,53610,901,5962,232,000024,576