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 26, 2026 22:58Victor MerckléVictor MerckléScore: 5,197Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 23:015,07511,969,5054,466,00002,113,536
2Jun 26, 2026 23:015,08411,962,1894,474,00002,113,536
3Jun 26, 2026 23:015,10011,988,5924,488,00002,113,536
4Jun 26, 2026 23:015,18012,035,9954,559,00002,113,536
5Jun 26, 2026 23:015,19712,093,2574,574,00002,113,536
6Jun 26, 2026 23:015,20312,046,9444,579,00002,113,536
7Jun 26, 2026 23:015,20612,034,6014,582,00002,113,536
8Jun 26, 2026 23:015,28812,133,5114,654,00002,113,536
9Jun 26, 2026 23:015,52912,684,9054,866,00002,113,536