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 listApr 21, 2026 19:41Victor MerckléVictor MerckléScore: 24,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 19:4124,00935,265,73419,116,0002,012,0002,326,528
2Apr 21, 2026 19:4124,26336,758,64120,336,0001,016,0002,387,968
3Apr 21, 2026 19:4124,38037,449,26020,434,0001,021,0002,322,432
4Apr 21, 2026 19:4124,50442,560,26320,538,0001,026,0002,379,776
5Apr 21, 2026 19:4124,60139,485,24820,619,0001,030,0002,383,872
6Apr 21, 2026 19:4124,72937,026,95720,726,0001,036,0002,379,776
7Apr 21, 2026 19:4124,84341,465,17618,881,0002,981,0002,322,432
8Apr 21, 2026 19:4124,91137,600,27420,926,000996,0002,322,432
9Apr 21, 2026 19:4125,04236,587,64220,034,0002,003,0002,383,872