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 4, 2026 21:23vahookvahookScore: 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 4, 2026 21:213,43818,715,5381,008,0002,017,0002,490,368
2Feb 4, 2026 21:203,45516,185,1601,013,0002,027,0002,281,472
3Feb 4, 2026 21:203,46719,315,2511,017,0002,034,0002,277,376
4Feb 4, 2026 21:203,46824,679,9821,017,0002,035,0002,281,472
5Feb 4, 2026 21:203,47021,284,6521,018,0002,036,0002,535,424
6Feb 4, 2026 21:203,47221,806,3511,018,0002,037,0002,502,656
7Feb 4, 2026 21:233,47221,867,8951,018,0002,037,0002,281,472
8Feb 4, 2026 21:213,47220,240,9421,018,0002,037,0002,498,560
9Feb 4, 2026 21:213,47520,841,3631,019,0002,039,0002,494,464
10Feb 4, 2026 21:203,47819,795,1671,020,0002,041,0002,535,424
11Feb 4, 2026 21:203,47822,531,0791,020,0002,041,0002,281,472
12Feb 4, 2026 21:203,48120,613,1021,021,0002,042,0002,490,368
13Feb 4, 2026 21:203,48517,481,7601,022,0002,045,0002,490,368
14Feb 4, 2026 21:213,48817,701,2471,023,0002,046,0002,277,376
15Feb 4, 2026 21:203,49821,240,0271,026,0002,052,0002,490,368
16Feb 4, 2026 21:203,52628,889,6781,034,0002,069,0002,498,560
17Feb 4, 2026 21:213,54319,246,9871,039,0002,079,0002,498,560
18Feb 4, 2026 21:233,54517,932,3331,040,0002,080,0002,506,752
19Feb 4, 2026 21:213,56419,109,3431,045,0002,091,0002,498,560
20Feb 4, 2026 21:203,56418,551,9931,045,0002,091,0002,498,560
21Feb 4, 2026 21:233,65924,049,3761,073,0002,147,0002,498,560