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 18, 2026 23:37Victor MerckléVictor MerckléScore: 35,711Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 23:4335,45958,347,95429,191,0002,013,0002,387,968
2Apr 18, 2026 23:3935,46853,143,83430,206,0001,006,0002,396,160
3Apr 18, 2026 23:3935,47459,204,89630,210,0001,007,0002,269,184
4Apr 18, 2026 23:3935,52053,232,07331,258,00002,269,184
5Apr 18, 2026 23:3935,61857,494,90931,344,00002,396,160
6Apr 18, 2026 23:4335,68252,880,82230,388,0001,012,0002,404,352
7Apr 18, 2026 23:3735,69959,741,64930,402,0001,013,0002,404,352
8Apr 18, 2026 23:3635,71152,022,21731,426,00002,269,184
9Apr 18, 2026 23:3935,71959,009,76431,433,00002,269,184
10Apr 18, 2026 23:3935,73461,164,90730,432,0001,014,0002,404,352
11Apr 18, 2026 23:3635,79153,405,00730,480,0001,016,0002,404,352
12Apr 18, 2026 23:3735,81860,887,22730,504,0001,016,0002,404,352
13Apr 18, 2026 23:4335,83853,929,65031,537,00002,396,160
14Apr 18, 2026 23:3735,84453,911,47130,526,0001,017,0002,269,184
15Apr 18, 2026 23:3635,90752,526,08330,579,0001,019,0002,404,352