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 5, 2026 17:21vahookvahookScore: 3,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 17:213,44023,573,0431,009,0002,018,0002,502,656
2Feb 5, 2026 17:213,45117,959,8261,012,0002,025,0002,498,560
3Feb 5, 2026 17:213,46120,279,6351,015,0002,031,0002,535,424
4Feb 5, 2026 17:213,46124,530,6181,015,0002,031,0002,490,368
5Feb 5, 2026 17:213,46722,206,0601,017,0002,034,0002,486,272
6Feb 5, 2026 17:223,46822,202,8741,017,0002,035,0002,281,472
7Feb 5, 2026 17:213,46817,675,6321,017,0002,035,0002,494,464
8Feb 5, 2026 17:213,47221,665,9761,018,0002,037,0002,498,560
9Feb 5, 2026 17:223,47521,077,8141,019,0002,039,0002,277,376
10Feb 5, 2026 17:203,47823,244,3811,020,0002,041,0002,490,368
11Feb 5, 2026 17:223,48120,944,3461,021,0002,042,0002,498,560
12Feb 5, 2026 17:213,48419,159,6341,022,0002,044,0002,494,464
13Feb 5, 2026 17:203,49515,538,2331,025,0002,051,0002,494,464
14Feb 5, 2026 17:203,49820,245,1181,026,0002,052,0002,494,464
15Feb 5, 2026 17:213,50919,066,2902,059,0001,029,0002,277,376
16Feb 5, 2026 17:213,50924,790,7351,029,0002,059,0002,486,272
17Feb 5, 2026 17:213,51120,091,4491,030,0002,060,0002,494,464
18Feb 5, 2026 17:213,52616,160,4421,034,0002,069,0002,281,472