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:00Josu 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:04013,199,2684,516,00002,113,536expected "50540348847710 ", got "50540348847537 "
2Jun 23, 2026 06:045,14512,106,3764,528,00002,113,536
3Jun 23, 2026 06:045,14812,046,8804,531,00002,113,536
4Jun 23, 2026 06:045,22912,081,0414,602,00002,113,536
5Jun 23, 2026 06:045,24312,441,6244,614,00002,113,536
6Jun 23, 2026 06:045,25712,122,7334,627,00002,113,536
7Jun 23, 2026 06:045,26912,081,0784,637,00002,113,536
8Jun 23, 2026 06:045,27012,430,2944,638,00002,113,536
9Jun 23, 2026 06:045,44712,274,9104,794,00002,113,536