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 listDec 19, 2024 14:05zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 14:0200000Error: expected "51081632023427 ", got "51082592969748 "stderr
2Dec 19, 2024 14:034,56524,905,7073,013,0001,004,0002,273,280
3Dec 19, 2024 14:034,60925,727,7613,042,0001,014,0002,277,376
4Dec 19, 2024 14:044,61818,458,4473,048,0001,016,0002,494,464
5Dec 19, 2024 14:054,63917,853,1483,062,0001,020,0002,498,560
6Dec 19, 2024 14:034,66019,393,9073,076,0001,025,0002,535,424
7Dec 19, 2024 14:044,68026,961,6063,089,0001,029,0002,494,464
8Dec 19, 2024 14:044,72428,428,7013,118,0001,039,0002,494,464
9Dec 19, 2024 14:194,77523,989,0193,152,0001,050,0002,490,368
10Dec 19, 2024 14:194,79524,831,1422,110,0002,110,0002,490,368
11Dec 19, 2024 14:054,79820,610,4263,167,0001,055,0002,490,368
12Dec 19, 2024 14:054,80022,212,7252,112,0002,112,0002,277,376
13Dec 19, 2024 14:194,83819,866,4823,193,0001,064,0002,535,424