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 10:22Victor MerckléVictor MerckléScore: 4,720Success
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 10:264,52011,811,8193,978,00002,117,632stderr
2Jul 4, 2026 10:264,65113,673,5364,093,00002,117,632stderr
3Jul 4, 2026 10:264,66011,909,5404,101,00002,117,632stderr
4Jul 4, 2026 10:264,67213,058,3004,112,00002,117,632stderr
5Jul 4, 2026 10:264,72011,938,6434,154,00002,117,632stderr
6Jul 4, 2026 10:264,73612,022,2184,168,00002,117,632stderr
7Jul 4, 2026 10:264,88912,103,7364,303,00002,117,632stderr
8Jul 4, 2026 10:264,94712,441,9834,354,00002,117,632stderr
9Jul 4, 2026 10:265,03612,287,7354,432,00002,117,632stderr