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:35Ivan BessonovIvan BessonovScore: 23,364Success
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:3523,00142,565,73519,229,0001,012,0002,289,664
2May 17, 2024 08:3523,17443,740,39719,374,0001,019,0002,277,376
3May 17, 2024 08:3523,19945,390,71619,395,0001,020,0002,289,664
4May 17, 2024 08:3523,23346,629,85619,423,0001,022,0002,281,472
5May 17, 2024 08:3523,28645,750,76019,468,0001,024,0002,273,280
6May 17, 2024 08:3523,29049,117,89019,471,0001,024,0002,289,664
7May 17, 2024 08:3523,36446,124,92719,532,0001,028,0002,289,664
8May 17, 2024 08:3523,39741,762,06019,560,0001,029,0002,289,664
9May 17, 2024 08:3523,41542,432,25419,575,0001,030,0002,289,664
10May 17, 2024 08:3523,53170,551,60520,707,47602,265,088
11May 17, 2024 08:3523,64768,467,93520,809,20002,392,064
12May 17, 2024 08:3523,74893,352,28120,897,83802,244,608