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 15:15highload-churnerhighload-churnerError
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:1609,876,1601,104,00002,113,536expected "51318508391029 ", got "7138048769587688409 "
2Oct 12, 2026 15:1609,838,8211,111,00002,113,536expected "50996964688009 ", got "1429313866092606493 "
3Oct 12, 2026 15:1609,785,3751,117,00002,113,536expected "51293069549462 ", got "8115551666108427523 "