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 listDec 23, 2023 20:35Kenneth MaplesKenneth MaplesScore: 24,069Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:3523,92352,587,49019,047,0002,005,0002,265,088
2Dec 23, 2023 20:3523,96038,014,82319,077,0002,008,0002,265,088
3Dec 23, 2023 20:3524,00247,206,25919,111,0002,011,0002,265,088
4Dec 23, 2023 20:3524,04347,800,70019,143,0002,015,0002,265,088
5Dec 23, 2023 20:3524,04849,822,67919,147,0002,015,0002,265,088
6Dec 23, 2023 20:3524,05745,808,86720,162,0001,008,0002,265,088
7Dec 23, 2023 20:3524,06948,737,34019,164,0002,017,0002,265,088
8Dec 23, 2023 20:3524,07047,758,66519,165,0002,017,0002,265,088
9Dec 23, 2023 20:3524,08643,301,96119,178,0002,018,0002,265,088
10Dec 23, 2023 20:3524,39590,191,44321,467,62502,240,512
11Dec 23, 2023 20:3524,45092,017,16221,515,95902,236,416
12Dec 23, 2023 20:3524,46977,938,72121,532,57702,240,512