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 listJul 4, 2026 19:30Victor MerckléVictor MerckléScore: 4,415Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 19:324,40511,754,5203,877,00002,117,632stderr
2Jul 4, 2026 19:324,40611,743,6313,878,00002,117,632stderr
3Jul 4, 2026 19:324,41111,716,9143,882,00002,117,632stderr
4Jul 4, 2026 19:324,41511,719,5053,886,00002,117,632stderr
5Jul 4, 2026 19:324,41511,698,2843,886,00002,117,632stderr
6Jul 4, 2026 19:324,50311,781,9123,963,00002,117,632stderr
7Jul 4, 2026 19:324,52811,774,9903,985,00002,117,632stderr
8Jul 4, 2026 19:324,53711,767,0253,993,00002,117,632stderr
9Jul 4, 2026 19:324,54711,784,6674,002,00002,117,632stderr