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 09:29Robert BurkeRobert BurkeScore: 19,357Success
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 09:2917,93585,526,82615,782,97002,248,704
2Oct 6, 2023 09:2918,06763,822,32515,899,21102,260,992
3Oct 6, 2023 09:2918,09384,827,92715,922,02502,256,896
4Oct 6, 2023 09:2919,24543,299,21214,944,0001,992,0002,281,472
5Oct 6, 2023 09:2919,32536,759,74615,006,0002,000,0002,514,944
6Oct 6, 2023 09:2919,34739,581,28816,024,0001,001,0002,416,640
7Oct 6, 2023 09:2919,35732,082,89216,032,0001,002,0002,412,544
8Oct 6, 2023 09:2919,41833,023,29315,078,0002,010,0002,416,640
9Oct 6, 2023 09:2919,41943,206,30215,079,0002,010,0002,281,472
10Oct 6, 2023 09:2919,42435,390,61115,082,0002,011,0002,277,376
11Oct 6, 2023 09:2919,44242,379,24415,097,0002,012,0002,281,472
12Oct 6, 2023 09:2919,49337,203,26314,127,0003,027,0002,281,472