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 5, 2023 14:39matsuoka-601matsuoka-601Score: 25,697Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2023 14:3925,56044,793,60722,493,00002,347,008
2Oct 5, 2023 14:3925,61745,026,09320,494,0002,049,0002,514,944
3Oct 5, 2023 14:3925,61946,055,10720,496,0002,049,0002,408,448
4Oct 5, 2023 14:3925,65047,744,40921,546,0001,026,0002,314,240
5Oct 5, 2023 14:3925,68346,823,55521,574,0001,027,0002,396,160
6Oct 5, 2023 14:3925,68550,206,80822,603,00002,392,064
7Oct 5, 2023 14:3925,69750,935,53922,613,00002,392,064
8Oct 5, 2023 14:3925,81551,188,61221,685,0001,032,0002,424,832
9Oct 5, 2023 14:3925,84354,887,76421,709,0001,033,0002,424,832
10Oct 5, 2023 14:3926,10786,547,63722,974,43802,248,704
11Oct 5, 2023 14:3926,116115,180,17322,981,99202,191,360
12Oct 5, 2023 14:3926,17785,292,99623,035,45302,256,896