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:26Karthik ReddyKarthik ReddyScore: 2,586Success
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:312,58211,289,1372,273,000024,576
2Oct 9, 2026 06:312,58210,908,2752,273,000024,576
3Oct 9, 2026 06:312,58510,882,9162,275,000024,576
4Oct 9, 2026 06:312,58510,956,6052,275,000024,576
5Oct 9, 2026 06:312,58610,799,5982,276,000024,576
6Oct 9, 2026 06:312,59210,926,3652,281,000024,576
7Oct 9, 2026 06:312,59510,876,2282,284,000024,576
8Oct 9, 2026 06:312,59611,036,3412,285,000024,576
9Oct 9, 2026 06:312,60010,765,3872,288,000024,576