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 14, 2024 15:04Ivan BessonovIvan BessonovScore: 36,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:0432,079100,798,19728,229,68702,256,896
2May 14, 2024 15:0432,09992,004,40828,247,24902,248,704
3May 14, 2024 15:0432,135111,063,59028,278,91202,265,088
4May 14, 2024 15:0436,35760,939,47729,995,0001,999,0002,289,664
5May 14, 2024 15:0436,39759,532,27730,028,0002,001,0002,273,280
6May 14, 2024 15:0436,42753,680,18931,055,0001,001,0002,277,376
7May 14, 2024 15:0436,45055,528,81331,074,0001,002,0002,289,664
8May 14, 2024 15:0436,45756,406,85330,077,0002,005,0002,269,184
9May 14, 2024 15:0436,47455,439,87230,091,0002,006,0002,527,232
10May 14, 2024 15:0436,57553,650,23831,181,0001,005,0002,277,376
11May 14, 2024 15:0436,65763,132,17130,242,0002,016,0002,289,664
12May 14, 2024 15:0436,68061,666,42030,261,0002,017,0002,289,664