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 listSep 2, 2026 22:26Victor MerckléVictor MerckléScore: 37,755Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 22:2937,72241,350,23733,196,000024,576stderr
2Sep 2, 2026 22:2937,72341,913,50533,197,000024,576stderr
3Sep 2, 2026 22:2937,72543,323,24933,198,000024,576stderr
4Sep 2, 2026 22:2937,75241,393,89933,222,000024,576stderr
5Sep 2, 2026 22:2937,75541,993,35433,225,000024,576stderr
6Sep 2, 2026 22:2937,76541,448,16333,234,000024,576stderr
7Sep 2, 2026 22:2937,78142,009,50133,248,000024,576stderr
8Sep 2, 2026 22:2939,02342,473,61734,341,000024,576stderr
9Sep 2, 2026 22:2939,61043,633,60834,857,000024,576stderr