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 23, 2026 22:53zielajzielajScore: 3,124Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2026 22:523,08019,820,5722,710,00002,420,736
2Feb 23, 2026 22:533,08120,491,4522,711,00002,424,832
3Feb 23, 2026 22:523,08118,013,8122,711,00002,428,928
4Feb 23, 2026 22:523,08317,797,4302,713,00002,433,024
5Feb 23, 2026 22:543,08820,481,5802,717,00002,428,928
6Feb 23, 2026 22:523,09321,267,7232,722,00002,428,928
7Feb 23, 2026 22:543,10622,123,5052,733,00002,424,832
8Feb 23, 2026 22:533,11118,552,2362,738,00002,424,832
9Feb 23, 2026 22:553,11624,363,8882,742,00002,428,928
10Feb 23, 2026 22:523,11723,274,9412,743,00002,420,736
11Feb 23, 2026 22:523,11718,627,2592,743,00002,424,832
12Feb 23, 2026 22:553,11820,452,8262,744,00002,424,832
13Feb 23, 2026 22:553,12423,671,7822,749,00002,428,928
14Feb 23, 2026 22:533,12419,807,9952,749,00002,433,024
15Feb 23, 2026 22:523,13321,115,7432,757,00002,420,736
16Feb 23, 2026 22:523,13621,217,0832,760,00002,424,832
17Feb 23, 2026 22:553,14120,608,0862,764,00002,424,832
18Feb 23, 2026 22:523,16820,345,3892,788,00002,424,832
19Feb 23, 2026 22:533,28316,839,7481,926,000963,0002,277,376
20Feb 23, 2026 22:523,31820,713,8251,947,000973,0002,416,640
21Feb 23, 2026 22:533,32017,036,8741,948,000974,0002,277,376
22Feb 23, 2026 22:553,32220,608,3931,949,000974,0002,433,024
23Feb 23, 2026 22:523,33218,338,9392,932,00002,428,928
24Feb 23, 2026 22:553,59319,247,9482,108,0001,054,0002,420,736
25Feb 23, 2026 22:533,65816,043,1712,146,0001,073,0002,535,424
26Feb 23, 2026 22:543,71617,576,0623,270,00002,277,376
27Feb 23, 2026 22:523,71819,759,3503,272,00002,277,376