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:52Victor MerckléVictor MerckléScore: 11,996Success
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:5311,91526,879,8519,438,0001,048,0002,387,968
2Apr 23, 2026 11:5311,92528,541,2739,445,0001,049,0002,387,968
3Apr 23, 2026 11:5311,97728,262,2919,486,0001,054,0002,318,336
4Apr 23, 2026 11:5311,99028,952,1909,497,0001,055,0002,387,968
5Apr 23, 2026 11:5311,99629,832,2209,502,0001,055,0002,392,064
6Apr 23, 2026 11:5311,99726,392,3129,503,0001,055,0002,318,336
7Apr 23, 2026 11:5312,03824,952,8189,535,0001,059,0002,478,080
8Apr 23, 2026 11:5312,08131,979,5789,569,0001,063,0002,379,776
9Apr 23, 2026 11:5312,16332,574,0189,634,0001,070,0002,387,968