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 listOct 2, 2023 19:42apuxbtapuxbtScore: 35,074Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 19:4234,42291,040,51530,291,33102,277,376
2Oct 2, 2023 19:4234,50087,470,70630,359,76702,285,568
3Oct 2, 2023 19:4234,62789,977,70630,471,60602,293,760
4Oct 2, 2023 19:4234,80960,400,76726,548,0004,084,0002,285,568
5Oct 2, 2023 19:4234,83962,217,85727,593,0003,065,0002,293,760
6Oct 2, 2023 19:4234,88156,834,92529,672,0001,023,0002,441,216
7Oct 2, 2023 19:4235,07461,585,92528,874,0001,991,0002,461,696
8Oct 2, 2023 19:4235,08155,498,64426,888,0003,983,0002,437,120
9Oct 2, 2023 19:4235,09167,213,66627,892,0002,988,0002,269,184
10Oct 2, 2023 19:4235,09959,960,08126,902,0003,985,0002,285,568
11Oct 2, 2023 19:4235,11055,305,40329,901,000996,0002,277,376
12Oct 2, 2023 19:4235,19754,397,94027,976,0002,997,0002,433,024