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 30, 2026 04:23olliecrowolliecrowScore: 13,619Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 04:2513,49419,934,9849,896,0001,979,0002,416,640
2Apr 30, 2026 04:2513,51519,947,7079,912,0001,982,0002,560,000
3Apr 30, 2026 04:2513,56819,954,5178,955,0002,985,0002,560,000
4Apr 30, 2026 04:2513,61019,985,3718,983,0002,994,0002,367,488
5Apr 30, 2026 04:2513,61929,056,2119,988,0001,997,0002,539,520
6Apr 30, 2026 04:2513,69220,221,9458,033,0004,016,0002,347,008
7Apr 30, 2026 04:2513,69329,116,9149,038,0003,012,0002,531,328
8Apr 30, 2026 04:2513,76220,059,12011,102,0001,009,0002,547,712
9Apr 30, 2026 04:2514,04620,325,0549,271,0003,090,0002,359,296