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 listJun 21, 2026 22:14A_ShamanA_ShamanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:180120,804,280108,782,0002,334,0002,113,536expected "51165824785798 ", got "51149532116705 "
2Jun 21, 2026 22:180121,273,636109,255,0002,348,0002,113,536expected "51471596039091 ", got "51462532326997 "
3Jun 21, 2026 22:180120,587,114108,676,0002,323,0002,113,536expected "50971964648061 ", got "50958981790127 "