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 03:59olliecrowolliecrowScore: 13,589Success
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 04:0013,55928,276,0939,944,0001,988,0002,547,712
2Apr 24, 2026 04:0013,56931,417,7549,951,0001,990,0002,551,808
3Apr 24, 2026 04:0013,57028,437,1219,952,0001,990,0002,551,808
4Apr 24, 2026 04:0013,57529,447,5839,955,0001,991,0002,547,712
5Apr 24, 2026 04:0013,58925,362,5889,966,0001,993,0002,379,776
6Apr 24, 2026 04:0013,65228,483,61810,012,0002,002,0002,355,200
7Apr 24, 2026 04:0013,78229,554,51510,108,0002,021,0002,531,328
8Apr 24, 2026 04:0014,23730,898,68911,485,0001,044,0002,551,808
9Apr 24, 2026 04:0014,27032,156,13311,512,0001,046,0002,535,424