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 8, 2026 17:54Victor MerckléVictor MerckléScore: 3,613Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 17:573,59511,047,2043,164,00002,117,632stderr
2Jul 8, 2026 17:573,59811,068,3973,167,00002,117,632stderr
3Jul 8, 2026 17:573,60210,987,0103,170,00002,117,632stderr
4Jul 8, 2026 17:573,60711,062,8173,175,00002,117,632stderr
5Jul 8, 2026 17:573,61311,174,4173,180,00002,117,632stderr
6Jul 8, 2026 17:573,62311,066,6793,189,00002,117,632stderr
7Jul 8, 2026 17:573,62511,075,9553,190,00002,117,632stderr
8Jul 8, 2026 17:573,71211,032,8023,267,00002,117,632stderr
9Jul 8, 2026 17:573,71811,400,0493,272,00002,117,632stderr