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 listJul 13, 2023 19:02gchebanovgchebanovScore: 55,793Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 19:0252,705120,901,57846,380,17502,289,664
2Jul 13, 2023 19:0252,789104,805,46646,454,47702,301,952
3Jul 13, 2023 19:0252,847108,780,44346,505,77502,297,856
4Jul 13, 2023 19:0255,60372,188,76247,933,000998,0002,289,664
5Jul 13, 2023 19:0255,70674,933,84247,021,0002,000,0002,445,312
6Jul 13, 2023 19:0255,71775,729,21047,030,0002,001,0002,289,664
7Jul 13, 2023 19:0255,79370,684,56147,094,0002,004,0002,289,664
8Jul 13, 2023 19:0255,80975,974,74448,110,0001,002,0002,289,664
9Jul 13, 2023 19:0255,94370,381,19047,221,0002,009,0002,437,120
10Jul 13, 2023 19:0255,99375,015,61747,263,0002,011,0002,441,216
11Jul 13, 2023 19:0257,62480,478,34349,695,0001,014,0002,449,408
12Jul 13, 2023 19:0258,05873,355,90749,088,0002,003,0002,289,664