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 29, 2026 14:26Victor MerckléVictor MerckléScore: 5,236Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 14:305,09616,202,7184,485,00002,117,632stderr
2Jun 29, 2026 14:305,10212,230,4134,490,00002,117,632stderr
3Jun 29, 2026 14:305,14512,655,5624,528,00002,117,632stderr
4Jun 29, 2026 14:305,23512,304,7464,607,00002,117,632stderr
5Jun 29, 2026 14:305,23612,563,5584,608,00002,117,632stderr
6Jun 29, 2026 14:305,23812,574,8704,610,00002,117,632stderr
7Jun 29, 2026 14:305,24712,547,3794,618,00002,117,632stderr
8Jun 29, 2026 14:305,37212,717,8184,728,00002,117,632stderr
9Jun 29, 2026 14:305,54012,930,9524,876,00002,117,632stderr