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 7, 2026 05:27vahookvahookScore: 3,403Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 05:233,33823,212,246979,0001,958,0002,494,464
2Feb 7, 2026 05:233,33918,091,8921,469,0001,469,0002,494,464
3Feb 7, 2026 05:233,35519,407,655984,0001,968,0002,498,560
4Feb 7, 2026 05:233,37318,293,921989,0001,979,0002,494,464
5Feb 7, 2026 05:233,38320,472,175992,0001,985,0002,494,464
6Feb 7, 2026 05:243,39920,667,204997,0001,994,0002,535,424
7Feb 7, 2026 05:273,40223,746,020998,0001,996,0002,277,376
8Feb 7, 2026 05:243,40322,166,228998,0001,997,0002,277,376
9Feb 7, 2026 05:233,40619,021,040999,0001,998,0002,277,376
10Feb 7, 2026 05:243,41722,748,0121,002,0002,005,0002,502,656
11Feb 7, 2026 05:233,43820,954,5601,008,0002,017,0002,277,376
12Feb 7, 2026 05:273,45120,173,6101,012,0002,025,0002,498,560
13Feb 7, 2026 05:233,46420,835,9621,016,0002,032,0002,498,560
14Feb 7, 2026 05:273,55925,471,1991,044,0002,088,0002,498,560
15Feb 7, 2026 05:233,71921,772,5651,091,0002,182,0002,502,656