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 27, 2026 10:01Pavel 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 27, 2026 10:01060,919,19040,261,0001,006,0002,441,216expected "51159758794312 ", got "51157936599336 "
2Apr 27, 2026 10:0146,64358,357,70939,044,0002,002,0002,428,928
3Apr 27, 2026 10:0146,83857,842,77540,213,0001,005,0002,424,832