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 17, 2024 08:29Ivan BessonovIvan BessonovScore: 24,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 08:2924,01149,179,40320,124,0001,006,0002,289,664
2May 17, 2024 08:2924,13542,229,97319,217,0002,022,0002,289,664
3May 17, 2024 08:2924,14843,667,05519,227,0002,023,0002,273,280
4May 17, 2024 08:2924,16951,618,40019,244,0002,025,0002,289,664
5May 17, 2024 08:2924,26644,559,58620,338,0001,016,0002,289,664
6May 17, 2024 08:2924,29844,202,91120,364,0001,018,0002,273,280
7May 17, 2024 08:2924,34151,256,80619,380,0002,040,0002,269,184
8May 17, 2024 08:2924,34549,632,61220,404,0001,020,0002,289,664
9May 17, 2024 08:2924,35542,880,35720,412,0001,020,0002,277,376
10May 17, 2024 08:2924,66295,988,76621,702,65702,252,800
11May 17, 2024 08:2924,74889,457,76521,778,23502,260,992
12May 17, 2024 08:2924,76594,792,59721,793,11102,260,992