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,705Success
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,07380,950,38015,904,20102,220,032
2Oct 4, 2023 12:2818,15071,691,29115,971,90602,224,128
3Oct 4, 2023 12:2818,19978,860,54516,014,95102,224,128
4Oct 4, 2023 12:2821,68443,589,90417,074,0002,008,0002,273,280
5Oct 4, 2023 12:2821,68940,439,81317,077,0002,009,0002,486,272
6Oct 4, 2023 12:2821,69542,038,25518,088,0001,004,0002,498,560
7Oct 4, 2023 12:2821,70540,124,25217,090,0002,010,0002,387,968
8Oct 4, 2023 12:2821,70540,367,01217,090,0002,010,0002,535,424
9Oct 4, 2023 12:2821,72542,789,41617,106,0002,012,0002,535,424
10Oct 4, 2023 12:2821,74436,336,79217,121,0002,014,0002,273,280
11Oct 4, 2023 12:2821,75239,810,10817,127,0002,015,0002,273,280
12Oct 4, 2023 12:2821,77837,631,02017,148,0002,017,0002,535,424