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:07A_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:160135,546,833122,597,0003,670,0002,113,536expected "51178400823124 ", got "51169441677106 "
2Jun 21, 2026 22:160135,957,295123,138,0003,587,0002,113,536expected "51210141635602 ", got "51202959606251 "
3Jun 21, 2026 22:160137,043,340122,938,0003,601,0002,113,536expected "51139997684699 ", got "51122071089510 "