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 listAug 29, 2026 09:50Victor MerckléVictor MerckléScore: 3,475Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 09:543,46211,252,3623,047,00002,117,632stderr
2Aug 29, 2026 09:543,46211,233,0543,047,00002,117,632stderr
3Aug 29, 2026 09:543,46911,298,8543,053,00002,117,632stderr
4Aug 29, 2026 09:543,47111,266,5313,055,00002,117,632stderr
5Aug 29, 2026 09:543,47511,284,8883,058,00002,117,632stderr
6Aug 29, 2026 09:543,56111,266,8413,134,00002,117,632stderr
7Aug 29, 2026 09:543,56211,279,1813,135,00002,117,632stderr
8Aug 29, 2026 09:543,57511,327,5133,146,00002,117,632stderr
9Aug 29, 2026 09:543,57612,296,1193,147,00002,117,632stderr