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 4, 2023 12:28Robert BurkeRobert BurkeScore: 21,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2818,10980,061,58315,935,48702,256,896
2Oct 4, 2023 12:2818,14268,719,23315,964,91402,228,224
3Oct 4, 2023 12:2818,14675,262,91615,968,61302,248,704
4Oct 4, 2023 12:2821,68946,728,54517,077,0002,009,0002,535,424
5Oct 4, 2023 12:2821,70548,228,28817,090,0002,010,0002,273,280
6Oct 4, 2023 12:2821,72245,637,31718,109,0001,006,0002,392,064
7Oct 4, 2023 12:2821,72242,681,71918,109,0001,006,0002,387,968
8Oct 4, 2023 12:2821,73440,378,40818,120,0001,006,0002,273,280
9Oct 4, 2023 12:2821,73838,889,24918,123,0001,006,0002,396,160
10Oct 4, 2023 12:2821,74437,087,84917,121,0002,014,0002,486,272
11Oct 4, 2023 12:2821,78234,015,33718,160,0001,008,0002,383,872
12Oct 4, 2023 12:2821,82444,471,30717,184,0002,021,0002,396,160