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:54apuxbtapuxbtScore: 31,150Success
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:5430,51387,826,70726,851,32802,224,128
2Oct 3, 2023 00:5430,544100,790,43926,878,74902,228,224
3Oct 3, 2023 00:5430,547107,054,79126,881,78002,224,128
4Oct 3, 2023 00:5431,03948,655,16725,291,0002,023,0002,293,760
5Oct 3, 2023 00:5431,09152,737,45825,334,0002,026,0002,502,656
6Oct 3, 2023 00:5431,14549,676,29626,393,0001,015,0002,506,752
7Oct 3, 2023 00:5431,15050,329,97627,412,00002,498,560
8Oct 3, 2023 00:5431,15956,816,56826,405,0001,015,0002,293,760
9Oct 3, 2023 00:5431,21653,626,32027,470,00002,510,848
10Oct 3, 2023 00:5431,23151,918,53426,466,0001,017,0002,510,848
11Oct 3, 2023 00:5431,28553,357,00926,512,0001,019,0002,293,760
12Oct 3, 2023 00:5431,31147,879,25827,554,00002,502,656