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:31A_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:320117,595,254106,095,0002,309,0002,113,536expected "51366971535558 ", got "51356743664732 "
2Jun 21, 2026 22:320117,688,286105,764,0002,318,0002,113,536expected "50961547119652 ", got "50952218772437 "
3Jun 21, 2026 22:320117,669,168106,115,0002,290,0002,113,536expected "51544675523106 ", got "51535919811551 "