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 listDec 19, 2025 11:22Wookyung JeongWookyung JeongScore: 6,799,290Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 11:206,773,9445,985,819,3765,958,072,0002,999,0002,514,944
2Dec 19, 2025 11:206,776,7575,990,217,9885,960,548,0002,998,0002,277,376
3Dec 19, 2025 11:236,778,0485,996,301,5305,962,683,0001,999,0002,277,376
4Dec 19, 2025 11:186,785,9176,000,982,5495,969,608,0001,999,0002,277,376
5Dec 19, 2025 11:236,786,5645,999,902,3605,970,177,0001,999,0002,277,376
6Dec 19, 2025 11:206,790,7336,000,641,2495,973,846,0001,999,0002,514,944
7Dec 19, 2025 11:206,794,2016,009,870,4455,977,898,000999,0002,277,376
8Dec 19, 2025 11:186,794,7246,004,584,4325,979,357,00002,277,376
9Dec 19, 2025 11:226,795,2146,002,733,4915,975,790,0003,998,0002,269,184
10Dec 19, 2025 11:206,795,9176,007,812,0335,979,408,000999,0002,289,664
11Dec 19, 2025 11:186,796,5806,006,013,7855,979,991,000999,0002,375,680
12Dec 19, 2025 11:236,798,9776,013,517,2575,979,102,0003,998,0002,277,376
13Dec 19, 2025 11:186,799,2906,010,928,8535,982,376,000999,0002,281,472
14Dec 19, 2025 11:186,804,5306,016,051,4625,987,986,00002,289,664
15Dec 19, 2025 11:226,806,8956,015,366,8575,988,069,0001,999,0002,281,472
16Dec 19, 2025 11:206,812,6356,025,054,6085,992,121,0002,998,0002,289,664
17Dec 19, 2025 11:186,814,6846,032,699,0345,995,923,000999,0002,281,472
18Dec 19, 2025 11:186,820,5986,025,072,7685,998,128,0003,998,0002,277,376
19Dec 19, 2025 11:206,827,9886,042,099,1356,006,630,0001,999,0002,277,376
20Dec 19, 2025 11:206,836,3766,042,283,7076,013,012,0002,999,0002,527,232
21Dec 19, 2025 11:206,841,1686,053,949,3786,019,229,000999,0002,277,376
22Dec 19, 2025 11:186,849,6786,055,921,9446,025,719,0001,998,0002,289,664
23Dec 19, 2025 11:226,851,0606,053,712,9856,026,934,0001,999,0002,277,376
24Dec 19, 2025 11:186,886,5236,089,248,1456,057,141,0002,999,0002,277,376