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 listApr 22, 2026 10:03Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 10:030219,524,160206,582,0001,002,0002,428,928expected "50988385938956 ", got "50988385847844 "
2Apr 22, 2026 10:030226,268,962204,877,0001,998,0002,424,832expected "51228898952710 ", got "51228898835842 "
3Apr 22, 2026 10:030227,603,807205,872,0001,998,0002,433,024expected "51051959875030 ", got "51051959712323 "