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 listJan 26, 2025 13:53rsk0315rsk0315Score: 114,408Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2025 13:53114,166124,569,52998,457,0002,009,0002,289,664
2Jan 26, 2025 13:53114,343132,069,85698,610,0002,012,0002,281,472
3Jan 26, 2025 13:53114,356125,492,64499,627,0001,006,0002,289,664
4Jan 26, 2025 13:53114,374128,493,49899,643,0001,006,0002,289,664
5Jan 26, 2025 13:53114,408126,524,97899,673,0001,006,0002,289,664
6Jan 26, 2025 13:53114,775129,738,040100,002,0001,000,0002,289,664
7Jan 26, 2025 13:53114,800132,794,73098,024,0003,000,0002,289,664
8Jan 26, 2025 13:53114,948127,678,51998,150,0003,004,0002,289,664
9Jan 26, 2025 13:53115,118121,105,52398,295,0003,009,0002,289,664