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:44Karthik ReddyKarthik ReddyScore: 293,904Success
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:48293,417266,869,281258,207,000020,480
2Oct 9, 2026 04:48293,615267,033,095258,382,000020,480
3Oct 9, 2026 04:48293,695267,179,461258,452,000020,480
4Oct 9, 2026 04:48293,711267,190,892258,466,000020,480
5Oct 9, 2026 04:48293,904267,251,313258,636,000020,480
6Oct 9, 2026 04:48293,910271,105,769258,641,000020,480
7Oct 9, 2026 04:48294,357267,747,130259,035,000020,480
8Oct 9, 2026 04:48294,431267,769,729259,100,000020,480
9Oct 9, 2026 04:48294,437267,768,915259,105,000020,480