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 13:25olliecrowolliecrowScore: 18,346Success
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 13:2617,05635,582,55713,009,0002,001,0002,531,328
2Apr 24, 2026 13:2617,58737,965,33314,446,0001,031,0002,527,232
3Apr 24, 2026 13:2618,14736,977,03413,974,0001,996,0002,531,328
4Apr 24, 2026 13:2618,26036,692,25614,061,0002,008,0002,527,232
5Apr 24, 2026 13:2618,34633,942,71315,136,0001,009,0002,543,616
6Apr 24, 2026 13:2618,36033,165,82014,138,0002,019,0002,531,328
7Apr 24, 2026 13:2619,07638,597,48515,738,0001,049,0002,527,232
8Apr 24, 2026 13:2620,20232,562,05716,733,0001,045,0002,535,424
9Apr 24, 2026 13:2620,21934,849,04516,747,0001,046,0002,531,328