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 listApr 23, 2026 11:14Victor MerckléVictor MerckléScore: 14,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 11:1514,35730,820,57012,635,00002,379,776
2Apr 23, 2026 11:1514,38930,316,85411,608,0001,055,0002,379,776
3Apr 23, 2026 11:1514,39731,805,40311,615,0001,055,0002,379,776
4Apr 23, 2026 11:1514,41334,855,44711,627,0001,057,0002,375,680
5Apr 23, 2026 11:1514,43130,370,73311,642,0001,058,0002,387,968
6Apr 23, 2026 11:1514,44630,339,24611,654,0001,059,0002,322,432
7Apr 23, 2026 11:1514,45431,573,81011,660,0001,060,0002,453,504
8Apr 23, 2026 11:1514,47130,610,49511,674,0001,061,0002,387,968
9Apr 23, 2026 11:1514,47530,961,13511,677,0001,061,0002,383,872