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:24A_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:270123,720,814112,175,0002,307,0002,113,536expected "51520840095719 ", got "51510349400141 "
2Jun 21, 2026 22:270123,328,413111,909,0002,267,0002,113,536expected "51198401797100 ", got "51187837027106 "
3Jun 21, 2026 22:270123,440,757111,871,0002,294,0002,113,536expected "51192341786598 ", got "51174426279418 "