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 listFeb 22, 2024 16:22Huy Duc LeHuy Duc LeScore: 29,934Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2024 16:2229,59473,316,75526,042,36302,215,936
2Feb 22, 2024 16:2229,59883,823,36726,045,97702,224,128
3Feb 22, 2024 16:2229,648101,417,44226,090,66102,256,896
4Feb 22, 2024 16:2229,83553,265,50525,246,0001,009,0002,289,664
5Feb 22, 2024 16:2229,84151,999,28225,250,0001,010,0002,289,664
6Feb 22, 2024 16:2229,91648,645,26525,314,0001,012,0002,494,464
7Feb 22, 2024 16:2229,93447,570,29525,329,0001,013,0002,494,464
8Feb 22, 2024 16:2230,01149,538,54325,395,0001,015,0002,289,664
9Feb 22, 2024 16:2230,05049,200,99525,427,0001,017,0002,289,664
10Feb 22, 2024 16:2230,05848,570,32325,434,0001,017,0002,289,664
11Feb 22, 2024 16:2230,08051,246,88225,452,0001,018,0002,502,656
12Feb 22, 2024 16:2230,19849,146,36025,552,0001,022,0002,486,272