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:31Karthik ReddyKarthik ReddyScore: 293,806Success
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:37292,997266,550,626257,838,000020,480
2Oct 9, 2026 04:37293,207266,636,109258,023,000020,480
3Oct 9, 2026 04:37293,415266,889,418258,206,000020,480
4Oct 9, 2026 04:37293,438266,761,416258,226,000020,480
5Oct 9, 2026 04:37293,806267,216,706258,550,000020,480
6Oct 9, 2026 04:37293,828267,293,977258,569,000020,480
7Oct 9, 2026 04:37294,087267,608,180258,797,000020,480
8Oct 9, 2026 04:37294,102267,361,826258,810,000020,480
9Oct 9, 2026 04:37294,345267,726,189259,024,000020,480