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:11A_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:170116,143,655103,594,0003,312,0002,113,536expected "51159156470607 ", got "51137493998067 "
2Jun 21, 2026 22:170115,739,514103,297,0003,322,0002,113,536expected "51022497807558 ", got "51014270151072 "
3Jun 21, 2026 22:170115,936,619102,990,0003,316,0002,113,536expected "50855674991982 ", got "50841839569148 "