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 04:16vahookvahookScore: 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 04:123,35521,649,257984,0001,968,0002,494,464
2Feb 7, 2026 04:123,35918,970,1431,478,0001,478,0002,494,464
3Feb 7, 2026 04:123,38918,532,708994,0001,988,0002,498,560
4Feb 7, 2026 04:123,39020,162,758994,0001,989,0002,490,368
5Feb 7, 2026 04:123,39919,493,622997,0001,994,0002,494,464
6Feb 7, 2026 04:163,40216,481,708998,0001,996,0002,277,376
7Feb 7, 2026 04:123,40321,076,737998,0001,997,0002,486,272
8Feb 7, 2026 04:143,40322,969,182998,0001,997,0002,494,464
9Feb 7, 2026 04:143,40724,375,515999,0001,999,0002,498,560
10Feb 7, 2026 04:123,41615,397,6221,002,0002,004,0002,277,376
11Feb 7, 2026 04:123,43016,655,1241,006,0002,012,0002,490,368
12Feb 7, 2026 04:163,43622,588,9951,008,0002,016,0002,494,464
13Feb 7, 2026 04:123,45819,218,4511,014,0002,029,0002,486,272
14Feb 7, 2026 04:163,46417,724,8911,016,0002,032,0002,494,464
15Feb 7, 2026 04:143,49420,590,7521,025,0002,050,0002,502,656