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 06:09Karthik ReddyKarthik ReddyScore: 2,580Success
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 06:142,56410,932,6192,257,000024,576
2Oct 9, 2026 06:142,56910,941,7342,261,000024,576
3Oct 9, 2026 06:142,57311,126,8172,265,000024,576
4Oct 9, 2026 06:142,57712,566,2992,268,000024,576
5Oct 9, 2026 06:142,58010,805,5342,271,000024,576
6Oct 9, 2026 06:142,58810,949,7072,278,000024,576
7Oct 9, 2026 06:142,59211,032,4922,281,000024,576
8Oct 9, 2026 06:142,59310,881,0412,282,000024,576
9Oct 9, 2026 06:142,59610,931,0982,285,000024,576