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 3, 2023 00:56apuxbtapuxbtScore: 32,278Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:5631,628104,599,06627,832,82802,224,128
2Oct 3, 2023 00:5631,66594,658,06727,865,46602,236,416
3Oct 3, 2023 00:5631,74699,151,85127,936,40702,232,320
4Oct 3, 2023 00:5632,19350,052,41527,319,0001,011,0002,293,760
5Oct 3, 2023 00:5632,24254,452,68727,360,0001,013,0002,285,568
6Oct 3, 2023 00:5632,27649,521,30427,389,0001,014,0002,293,760
7Oct 3, 2023 00:5632,27850,682,12727,391,0001,014,0002,293,760
8Oct 3, 2023 00:5632,38648,566,88627,483,0001,017,0002,351,104
9Oct 3, 2023 00:5632,41352,559,83927,505,0001,018,0002,506,752
10Oct 3, 2023 00:5632,41755,535,90428,527,00002,293,760
11Oct 3, 2023 00:5632,48255,586,59227,564,0001,020,0002,510,848
12Oct 3, 2023 00:5632,52353,212,25328,620,00002,293,760