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 05:55Karthik ReddyKarthik ReddyScore: 2,635Success
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 05:592,61811,062,8782,304,000024,576
2Oct 9, 2026 05:592,62811,242,0092,313,000024,576
3Oct 9, 2026 05:592,63210,883,7662,317,000024,576
4Oct 9, 2026 05:592,63211,099,2852,317,000024,576
5Oct 9, 2026 05:592,63510,998,5892,319,000024,576
6Oct 9, 2026 05:592,63610,961,4962,320,000024,576
7Oct 9, 2026 05:592,64411,017,5112,327,000024,576
8Oct 9, 2026 05:592,64411,146,9252,327,000024,576
9Oct 9, 2026 05:592,66010,916,5022,341,000024,576