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 listDec 1, 2022 05:55apuxbtapuxbtScore: 32,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 05:5531,647100,857,03227,849,59802,236,416
2Dec 1, 2022 05:5531,80696,592,37727,989,42402,236,416
3Dec 1, 2022 05:5531,80999,374,02627,991,48102,236,416
4Dec 1, 2022 05:5532,35156,967,58827,453,0001,016,0002,387,968
5Dec 1, 2022 05:5532,49351,488,78227,573,0001,021,0002,387,968
6Dec 1, 2022 05:5532,52353,142,70227,598,0001,022,0002,396,160
7Dec 1, 2022 05:5532,52553,206,75928,622,00002,383,872
8Dec 1, 2022 05:5532,56654,361,28427,635,0001,023,0002,379,776
9Dec 1, 2022 05:5532,56750,954,56928,659,00002,387,968
10Dec 1, 2022 05:5532,57553,606,89628,666,00002,265,088
11Dec 1, 2022 05:5532,60154,699,17228,689,00002,387,968
12Dec 1, 2022 05:5532,82653,388,26726,895,0001,992,0002,473,984