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 25, 2023 21:07gchebanovgchebanovScore: 30,916Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 21:0730,72847,812,36825,038,0002,003,0002,453,504
2Jul 25, 2023 21:0730,73851,565,03525,046,0002,003,0002,445,312
3Jul 25, 2023 21:0730,81153,267,14425,106,0002,008,0002,441,216
4Jul 25, 2023 21:0730,81548,847,21925,109,0002,008,0002,441,216
5Jul 25, 2023 21:0730,82551,628,34725,117,0002,009,0002,441,216
6Jul 25, 2023 21:0730,86151,047,36326,153,0001,005,0002,289,664
7Jul 25, 2023 21:0730,905102,218,40727,196,53902,293,760
8Jul 25, 2023 21:0730,91646,594,65125,191,0002,015,0002,277,376
9Jul 25, 2023 21:0730,93689,157,42127,223,55002,293,760
10Jul 25, 2023 21:0730,94682,253,39727,232,35602,285,568
11Jul 25, 2023 21:0730,99049,157,91125,251,0002,020,0002,289,664
12Jul 25, 2023 21:0731,01649,401,90825,273,0002,021,0002,281,472
13Jul 25, 2023 21:0731,04894,979,93227,322,18702,293,760
14Jul 25, 2023 21:0731,09486,367,20527,362,86702,285,568
15Jul 25, 2023 21:0731,16995,809,96127,428,42302,281,472