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 listMar 5, 2025 05:14k11ik11iScore: 122,639Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 5, 2025 05:14122,340138,723,952106,653,0001,006,0002,396,160
2Mar 5, 2025 05:13122,397134,518,029106,703,0001,006,0002,281,472
3Mar 5, 2025 05:13122,555137,272,438101,857,0005,991,0002,273,280
4Mar 5, 2025 05:13122,556137,018,003106,851,000998,0002,289,664
5Mar 5, 2025 05:13122,574140,101,546104,869,0002,996,0002,277,376
6Mar 5, 2025 05:14122,576139,446,643105,870,0001,997,0002,289,664
7Mar 5, 2025 05:14122,581136,174,934105,874,0001,997,0002,404,352
8Mar 5, 2025 05:13122,622133,248,279105,909,0001,998,0002,289,664
9Mar 5, 2025 05:14122,636139,599,126104,923,0002,997,0002,289,664
10Mar 5, 2025 05:13122,639133,391,436105,924,0001,998,0002,289,664
11Mar 5, 2025 05:14122,675131,051,620104,956,0002,998,0002,486,272
12Mar 5, 2025 05:14122,677137,175,082106,957,000999,0002,400,256
13Mar 5, 2025 05:13122,689135,244,463105,967,0001,999,0002,519,040
14Mar 5, 2025 05:13122,733130,952,082105,005,0003,000,0002,289,664
15Mar 5, 2025 05:14122,739137,452,079106,010,0002,000,0002,396,160
16Mar 5, 2025 05:14122,778132,038,571105,044,0003,001,0002,289,664
17Mar 5, 2025 05:13122,818130,272,085106,079,0002,001,0002,277,376
18Mar 5, 2025 05:14122,823130,264,204106,083,0002,001,0002,289,664