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 7, 2026 23:29Karthik ReddyKarthik ReddyScore: 2,638Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2026 23:322,61211,088,9182,299,000020,480
2Oct 7, 2026 23:322,61411,046,1112,301,000020,480
3Oct 7, 2026 23:322,63411,050,6172,318,000020,480
4Oct 7, 2026 23:322,63611,080,6912,320,000020,480
5Oct 7, 2026 23:322,63811,140,2532,322,000020,480
6Oct 7, 2026 23:322,64011,091,5632,324,000020,480
7Oct 7, 2026 23:322,65411,060,8582,336,000020,480
8Oct 7, 2026 23:322,65911,592,4122,340,000020,480
9Oct 7, 2026 23:322,78111,207,1892,448,000020,480