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 listMay 16, 2024 20:58Ivan BessonovIvan BessonovScore: 31,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:5831,27548,662,88626,503,0001,019,0002,289,664
2May 16, 2024 20:5831,31150,372,89026,534,0001,020,0002,289,664
3May 16, 2024 20:5831,34554,952,49327,584,00002,527,232
4May 16, 2024 20:5831,36954,853,57326,583,0001,022,0002,273,280
5May 16, 2024 20:5831,38355,122,22826,595,0001,022,0002,277,376
6May 16, 2024 20:5831,44356,550,96327,670,00002,289,664
7May 16, 2024 20:5831,44456,177,44826,647,0001,024,0002,273,280
8May 16, 2024 20:5831,54153,926,35726,728,0001,028,0002,273,280
9May 16, 2024 20:5831,66353,632,62826,868,000995,0002,289,664
10May 16, 2024 20:5834,31199,360,56430,193,26702,256,896
11May 16, 2024 20:5834,32596,365,18930,206,14102,256,896
12May 16, 2024 20:5834,34998,729,49030,226,91302,265,088