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:38Robert BurkeRobert BurkeScore: 22,156Success
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:3817,97261,705,98915,815,77702,232,320
2Oct 6, 2023 08:3818,14785,820,81215,969,39502,228,224
3Oct 6, 2023 08:3818,17872,423,68815,996,68102,224,128
4Oct 6, 2023 08:3822,07439,212,31018,403,0001,022,0002,498,560
5Oct 6, 2023 08:3822,07745,387,78518,406,0001,022,0002,494,464
6Oct 6, 2023 08:3822,12740,313,12718,448,0001,024,0002,281,472
7Oct 6, 2023 08:3822,15637,679,02617,445,0002,052,0002,387,968
8Oct 6, 2023 08:3822,21040,757,06818,517,0001,028,0002,281,472
9Oct 6, 2023 08:3822,23440,750,43018,537,0001,029,0002,281,472
10Oct 6, 2023 08:3822,30342,514,52217,561,0002,066,0002,379,776
11Oct 6, 2023 08:3822,33541,938,27618,621,0001,034,0002,396,160
12Oct 6, 2023 08:3822,36350,610,30017,608,0002,071,0002,396,160