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 08:36Robert BurkeRobert BurkeScore: 21,981Success
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 08:3618,09874,669,97615,926,39502,220,032
2Oct 6, 2023 08:3618,13981,370,29715,962,73302,215,936
3Oct 6, 2023 08:3618,14182,908,31315,963,72602,232,320
4Oct 6, 2023 08:3618,14674,785,72215,968,16202,224,128
5Oct 6, 2023 08:3618,15686,563,02315,977,43302,232,320
6Oct 6, 2023 08:3618,262106,339,04916,070,99502,215,936
7Oct 6, 2023 08:3621,73239,167,51618,118,0001,006,0002,281,472
8Oct 6, 2023 08:3621,86940,444,11717,220,0002,025,0002,387,968
9Oct 6, 2023 08:3621,87344,046,25617,222,0002,026,0002,281,472
10Oct 6, 2023 08:3621,88042,441,31918,241,0001,013,0002,281,472
11Oct 6, 2023 08:3621,91940,319,37916,244,0003,045,0002,281,472
12Oct 6, 2023 08:3621,92644,085,94918,280,0001,015,0002,281,472
13Oct 6, 2023 08:3621,98144,102,49618,325,0001,018,0002,281,472
14Oct 6, 2023 08:3621,99441,610,07219,355,00002,281,472
15Oct 6, 2023 08:3622,00839,375,49417,329,0002,038,0002,281,472
16Oct 6, 2023 08:3622,01137,774,33519,370,00002,281,472
17Oct 6, 2023 08:3622,01542,561,52717,334,0002,039,0002,281,472
18Oct 6, 2023 08:3622,01649,334,89319,374,00002,396,160
19Oct 6, 2023 08:3622,01643,360,37217,335,0002,039,0002,494,464
20Oct 6, 2023 08:3622,05349,135,62419,407,00002,281,472
21Oct 6, 2023 08:3622,13640,344,46918,455,0001,025,0002,281,472
22Oct 6, 2023 08:3622,15241,966,86118,468,0001,026,0002,281,472
23Oct 6, 2023 08:3622,16640,505,74318,480,0001,026,0002,396,160
24Oct 6, 2023 08:3622,21841,864,76517,494,0002,058,0002,396,160