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 listJun 27, 2026 19:00Victor MerckléVictor MerckléScore: 5,219Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:035,12512,293,8734,510,00002,117,632stderr
2Jun 27, 2026 19:035,17112,345,2394,551,00002,117,632stderr
3Jun 27, 2026 19:035,20112,330,1934,577,00002,117,632stderr
4Jun 27, 2026 19:035,21012,305,6794,585,00002,117,632stderr
5Jun 27, 2026 19:035,21912,635,5624,593,00002,117,632stderr
6Jun 27, 2026 19:035,23112,308,3584,604,00002,117,632stderr
7Jun 27, 2026 19:035,25512,760,0934,625,00002,117,632stderr
8Jun 27, 2026 19:035,32312,736,5354,685,00002,117,632stderr
9Jun 27, 2026 19:035,75212,830,8595,062,00002,117,632stderr