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 23, 2026 06:08Josu San MartinJosu San MartinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 06:09012,020,2074,541,00002,113,536expected "51037808883807 ", got "51037808883710 "
2Jun 23, 2026 06:095,07912,053,1874,470,00002,113,536
3Jun 23, 2026 06:095,63912,413,6184,963,00002,113,536