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 8, 2026 19:59zielajzielajScore: 3,372Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 20:013,31718,111,6292,919,00002,392,064
2Feb 8, 2026 20:013,32416,599,7951,950,000975,0002,392,064
3Feb 8, 2026 20:023,32720,814,7901,952,000976,0002,269,184
4Feb 8, 2026 20:013,32718,743,4081,952,000976,0002,396,160
5Feb 8, 2026 20:013,34221,372,3551,961,000980,0002,400,256
6Feb 8, 2026 20:023,34817,216,1891,964,000982,0002,277,376
7Feb 8, 2026 19:593,35516,384,0562,952,00002,277,376
8Feb 8, 2026 20:013,35619,645,3921,969,000984,0002,400,256
9Feb 8, 2026 20:023,35920,262,1832,956,00002,531,328
10Feb 8, 2026 20:013,37217,252,1671,978,000989,0002,387,968
11Feb 8, 2026 19:593,45818,602,2412,029,0001,014,0002,387,968
12Feb 8, 2026 19:593,46522,293,5642,033,0001,016,0002,392,064
13Feb 8, 2026 19:593,48123,681,8922,042,0001,021,0002,387,968
14Feb 8, 2026 20:013,52618,153,7032,069,0001,034,0002,396,160
15Feb 8, 2026 19:593,69015,778,3372,165,0001,082,0002,273,280
16Feb 8, 2026 20:014,06620,760,2973,578,00002,383,872
17Feb 8, 2026 19:594,11318,232,4573,619,00002,392,064
18Feb 8, 2026 20:014,23119,328,2783,723,00002,392,064