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 24, 2026 16:47Victor MerckléVictor MerckléScore: 11,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 16:4911,79430,420,38810,379,00002,433,024
2Apr 24, 2026 16:4911,80625,833,76310,390,00002,433,024
3Apr 24, 2026 16:4911,83625,847,8459,375,0001,041,0002,441,216
4Apr 24, 2026 16:4911,85422,877,96710,432,00002,412,544
5Apr 24, 2026 16:4911,88224,334,6358,366,0002,091,0002,424,832
6Apr 24, 2026 16:4911,91124,470,3789,434,0001,048,0002,478,080
7Apr 24, 2026 16:4911,93626,690,8919,454,0001,050,0002,437,120
8Apr 24, 2026 16:4911,94324,191,3999,459,0001,051,0002,428,928
9Apr 24, 2026 16:4911,95933,619,2999,472,0001,052,0002,433,024