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 19:02Ivan BessonovIvan BessonovScore: 31,352Success
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 19:0228,224102,416,86324,836,95302,260,992
2May 16, 2024 19:0228,25089,965,12224,860,04402,265,088
3May 16, 2024 19:0228,25594,529,61224,864,62102,260,992
4May 16, 2024 19:0231,24050,108,73027,491,00002,273,280
5May 16, 2024 19:0231,25250,326,47327,502,00002,269,184
6May 16, 2024 19:0231,27455,421,91726,502,0001,019,0002,289,664
7May 16, 2024 19:0231,35252,488,99127,590,00002,289,664
8May 16, 2024 19:0231,38549,472,46226,597,0001,022,0002,289,664
9May 16, 2024 19:0231,44056,391,24626,643,0001,024,0002,289,664
10May 16, 2024 19:0231,52359,090,19526,713,0001,027,0002,289,664
11May 16, 2024 19:0231,54051,589,44826,764,000991,0002,289,664
12May 16, 2024 19:0231,57755,931,98427,788,00002,269,184