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 18, 2024 04:48Huy Duc LeHuy Duc LeScore: 59,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 04:4856,285128,317,32049,531,04802,252,800
2Feb 18, 2024 04:4856,574104,909,74449,785,31702,260,992
3Feb 18, 2024 04:4856,662117,811,77549,862,19802,387,968
4Feb 18, 2024 04:4859,59075,083,16951,431,0001,008,0002,273,280
5Feb 18, 2024 04:4859,76673,331,22451,583,0001,011,0002,265,088
6Feb 18, 2024 04:4859,77481,383,67551,590,0001,011,0002,289,664
7Feb 18, 2024 04:4859,87678,283,78351,678,0001,013,0002,289,664
8Feb 18, 2024 04:4859,97283,062,61451,761,0001,014,0002,289,664
9Feb 18, 2024 04:4860,08882,249,89051,880,000997,0002,289,664
10Feb 18, 2024 04:4860,09780,819,80650,890,0001,995,0002,289,664
11Feb 18, 2024 04:4860,11078,498,74450,901,0001,996,0002,277,376
12Feb 18, 2024 04:4860,13280,033,22551,899,0001,017,0002,269,184