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:13vahookvahookScore: 3,448Success
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:123,40319,653,659998,0001,997,0002,277,376
2Feb 6, 2026 05:123,40917,742,2721,000,0002,000,0002,498,560
3Feb 6, 2026 05:123,41421,270,8011,001,0002,003,0002,535,424
4Feb 6, 2026 05:123,42723,162,5671,005,0002,011,0002,498,560
5Feb 6, 2026 05:133,43319,162,2541,007,0002,014,0002,494,464
6Feb 6, 2026 05:133,43320,204,6991,007,0002,014,0002,535,424
7Feb 6, 2026 05:123,43415,418,5131,007,0002,015,0002,498,560
8Feb 6, 2026 05:183,43620,363,2081,008,0002,016,0002,277,376
9Feb 6, 2026 05:133,43618,912,6341,008,0002,016,0002,277,376
10Feb 6, 2026 05:133,44017,770,2151,009,0002,018,0002,498,560
11Feb 6, 2026 05:123,44116,392,8931,009,0002,019,0002,535,424
12Feb 6, 2026 05:133,44118,087,9311,009,0002,019,0002,506,752
13Feb 6, 2026 05:133,44820,469,2951,011,0002,023,0002,490,368
14Feb 6, 2026 05:183,45120,460,0091,012,0002,025,0002,494,464
15Feb 6, 2026 05:133,45521,873,8291,013,0002,027,0002,498,560
16Feb 6, 2026 05:183,45720,037,1341,014,0002,028,0002,490,368
17Feb 6, 2026 05:133,46022,729,3941,015,0002,030,0002,281,472
18Feb 6, 2026 05:133,46122,023,3281,015,0002,031,0002,277,376
19Feb 6, 2026 05:123,46118,569,6191,015,0002,031,0002,277,376
20Feb 6, 2026 05:123,46719,026,5391,017,0002,034,0002,498,560
21Feb 6, 2026 05:133,47220,152,2361,018,0002,037,0002,490,368
22Feb 6, 2026 05:123,48217,946,0541,021,0002,043,0002,535,424
23Feb 6, 2026 05:133,59820,570,5831,055,0002,111,0002,498,560
24Feb 6, 2026 05:133,63420,728,6991,066,0002,132,0002,498,560