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:18A_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:180118,860,669107,400,0002,296,0002,113,536expected "51226077113079 ", got "51213554670773 "
2Jun 21, 2026 22:180119,618,045107,104,0003,352,0002,113,536expected "51235432206040 ", got "51228289050104 "
3Jun 21, 2026 22:180119,736,827106,600,0003,559,0002,113,536expected "51027691638497 ", got "51020536158424 "