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 01:00vahookvahookScore: 3,489Success
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 01:013,45321,985,9161,013,0002,026,0002,494,464
2Feb 5, 2026 01:013,45520,292,5791,013,0002,027,0002,281,472
3Feb 5, 2026 02:083,45721,006,7861,014,0002,028,0002,281,472
4Feb 5, 2026 01:003,46721,895,5941,017,0002,034,0002,494,464
5Feb 5, 2026 01:013,47023,773,3811,018,0002,036,0002,498,560
6Feb 5, 2026 01:013,47519,342,3701,019,0002,039,0002,494,464
7Feb 5, 2026 01:003,47723,409,3311,020,0002,040,0002,494,464
8Feb 5, 2026 02:083,47820,585,7461,020,0002,041,0002,498,560
9Feb 5, 2026 01:003,48120,289,6641,021,0002,042,0002,498,560
10Feb 5, 2026 01:003,48219,032,0021,021,0002,043,0002,498,560
11Feb 5, 2026 01:003,48217,228,8821,021,0002,043,0002,281,472
12Feb 5, 2026 01:013,48420,459,7811,022,0002,044,0002,281,472
13Feb 5, 2026 01:003,48915,228,7921,023,0002,047,0002,535,424
14Feb 5, 2026 01:013,49120,732,7581,024,0002,048,0002,494,464
15Feb 5, 2026 01:003,49226,122,8921,024,0002,049,0002,494,464
16Feb 5, 2026 01:013,49423,516,3091,025,0002,050,0002,502,656
17Feb 5, 2026 01:003,50923,923,4081,029,0002,059,0002,498,560
18Feb 5, 2026 01:003,51820,653,9921,032,0002,064,0002,498,560
19Feb 5, 2026 01:013,53022,780,5681,035,0002,071,0002,498,560
20Feb 5, 2026 01:003,53217,949,5961,036,0002,072,0002,494,464
21Feb 5, 2026 01:003,54317,380,1891,039,0002,079,0002,498,560
22Feb 5, 2026 02:083,55718,618,3931,043,0002,087,0002,498,560
23Feb 5, 2026 01:013,57023,832,8431,047,0002,095,0002,486,272
24Feb 5, 2026 01:003,59721,466,2621,055,0002,110,0002,482,176