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 24, 2026 00:56olliecrowolliecrowScore: 18,606Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 00:5718,45130,289,28116,237,00002,359,296
2Apr 24, 2026 00:5718,49635,455,27415,260,0001,017,0002,297,856
3Apr 24, 2026 00:5718,58133,727,54815,330,0001,022,0002,301,952
4Apr 24, 2026 00:5718,59541,072,55416,364,00002,560,000
5Apr 24, 2026 00:5718,60633,466,04415,351,0001,023,0002,281,472
6Apr 24, 2026 00:5718,62231,764,43815,364,0001,024,0002,338,816
7Apr 24, 2026 00:5718,62532,368,33515,366,0001,024,0002,306,048
8Apr 24, 2026 00:5718,63433,672,08115,374,0001,024,0002,564,096
9Apr 24, 2026 00:5718,64033,976,62215,379,0001,025,0002,338,816