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 listFeb 6, 2026 05:51vahookvahookScore: 3,430Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 05:503,39219,501,186995,0001,990,0002,498,560
2Feb 6, 2026 05:503,40218,703,987998,0001,996,0002,494,464
3Feb 6, 2026 05:503,41417,151,9611,001,0002,003,0002,490,368
4Feb 6, 2026 05:513,41620,488,6231,002,0002,004,0002,498,560
5Feb 6, 2026 05:503,41919,125,6971,003,0002,006,0002,494,464
6Feb 6, 2026 05:503,42617,106,7901,005,0002,010,0002,494,464
7Feb 6, 2026 05:503,42618,315,8581,005,0002,010,0002,494,464
8Feb 6, 2026 05:513,43020,833,3561,006,0002,012,0002,498,560
9Feb 6, 2026 05:513,43022,221,0691,006,0002,012,0002,502,656
10Feb 6, 2026 05:513,44018,433,8431,009,0002,018,0002,498,560
11Feb 6, 2026 05:513,44417,957,3261,010,0002,021,0002,490,368
12Feb 6, 2026 05:513,47522,161,9471,019,0002,039,0002,498,560
13Feb 6, 2026 05:503,48517,028,0021,022,0002,045,0002,277,376
14Feb 6, 2026 05:503,55325,025,3991,042,0002,085,0002,490,368
15Feb 6, 2026 05:503,64820,908,3381,070,0002,140,0002,277,376