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 listOct 6, 2023 08:40Robert BurkeRobert BurkeScore: 22,093Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:3918,06365,322,97915,895,40902,232,320
2Oct 6, 2023 08:4018,10583,871,17815,932,73902,244,608
3Oct 6, 2023 08:3918,11172,609,13015,937,68802,228,224
4Oct 6, 2023 08:4018,12085,525,86815,945,22202,236,416
5Oct 6, 2023 08:3918,13583,557,47115,959,15202,240,512
6Oct 6, 2023 08:4018,24396,944,77916,053,54302,236,416
7Oct 6, 2023 08:3922,00140,267,36018,342,0001,019,0002,281,472
8Oct 6, 2023 08:4022,05741,476,08919,410,00002,392,064
9Oct 6, 2023 08:4022,06740,988,86819,419,00002,281,472
10Oct 6, 2023 08:4022,07342,910,94418,402,0001,022,0002,400,256
11Oct 6, 2023 08:3922,07440,658,08518,403,0001,022,0002,281,472
12Oct 6, 2023 08:3922,08544,464,82019,435,00002,281,472
13Oct 6, 2023 08:3922,09351,138,44518,419,0001,023,0002,281,472
14Oct 6, 2023 08:3922,09540,322,71219,444,00002,281,472
15Oct 6, 2023 08:4022,10241,738,84418,427,0001,023,0002,281,472
16Oct 6, 2023 08:3922,11139,693,43618,434,0001,024,0002,400,256
17Oct 6, 2023 08:3922,11636,822,04317,414,0002,048,0002,277,376
18Oct 6, 2023 08:4022,11946,206,45419,465,00002,396,160
19Oct 6, 2023 08:4022,12841,031,32619,473,00002,281,472
20Oct 6, 2023 08:4022,16846,027,02018,482,0001,026,0002,396,160
21Oct 6, 2023 08:3922,18141,366,54518,492,0001,027,0002,400,256
22Oct 6, 2023 08:4022,24443,752,53617,515,0002,060,0002,396,160
23Oct 6, 2023 08:4022,24743,173,93318,547,0001,030,0002,400,256
24Oct 6, 2023 08:3922,32739,638,25418,614,0001,034,0002,277,376