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 12, 2026 14:59highload-churnerhighload-churnerScore: 4,145Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2026 15:014,10712,362,8373,615,00002,113,536
2Oct 12, 2026 15:014,12112,332,9713,627,00002,113,536
3Oct 12, 2026 15:014,12512,365,7773,630,00002,113,536
4Oct 12, 2026 15:014,12612,365,4863,631,00002,113,536
5Oct 12, 2026 15:014,14512,393,9313,648,00002,113,536
6Oct 12, 2026 15:014,14712,330,6573,650,00002,113,536
7Oct 12, 2026 15:014,21812,903,5423,712,00002,113,536
8Oct 12, 2026 15:014,22314,658,1053,717,00002,113,536
9Oct 12, 2026 15:014,23712,394,4913,729,00002,113,536