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 26, 2026 21:52Victor MerckléVictor MerckléScore: 5,185Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 21:545,07312,000,6424,465,00002,113,536
2Jun 26, 2026 21:545,07511,974,8454,466,00002,113,536
3Jun 26, 2026 21:545,15512,014,3064,537,00002,113,536
4Jun 26, 2026 21:545,17612,356,0284,555,00002,113,536
5Jun 26, 2026 21:545,18512,393,5444,563,00002,113,536
6Jun 26, 2026 21:545,18912,431,7114,567,00002,113,536
7Jun 26, 2026 21:545,19811,985,8784,575,00002,113,536
8Jun 26, 2026 21:545,33912,150,0634,699,00002,113,536
9Jun 26, 2026 21:545,46312,637,3374,808,00002,113,536