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 3, 2026 23:37Victor MerckléVictor MerckléScore: 4,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 23:404,63511,860,8634,079,00002,117,632stderr
2Jul 3, 2026 23:404,63711,886,4694,081,00002,117,632stderr
3Jul 3, 2026 23:404,64811,894,0194,091,00002,117,632stderr
4Jul 3, 2026 23:404,67311,905,0064,113,00002,117,632stderr
5Jul 3, 2026 23:404,73412,210,5804,166,00002,117,632stderr
6Jul 3, 2026 23:404,73511,989,5844,167,00002,117,632stderr
7Jul 3, 2026 23:404,76011,931,3624,189,00002,117,632stderr
8Jul 3, 2026 23:404,98513,191,8523,204,0001,183,0002,117,632stderr
9Jul 3, 2026 23:405,02519,602,0294,422,00002,117,632stderr