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 6, 2023 07:53matsuoka-601matsuoka-601Score: 18,919Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:5318,59085,209,96916,359,35502,236,416
2Oct 6, 2023 07:5318,60091,341,85116,367,99102,301,952
3Oct 6, 2023 07:5318,64981,697,64816,411,33002,236,416
4Oct 6, 2023 07:5318,86838,303,43013,491,0003,113,0002,420,736
5Oct 6, 2023 07:5318,87532,812,52013,496,0003,114,0002,293,760
6Oct 6, 2023 07:5318,90134,672,26612,475,0004,158,0002,514,944
7Oct 6, 2023 07:5318,91942,912,54513,528,0003,121,0002,306,048
8Oct 6, 2023 07:5318,93343,404,97613,537,0003,124,0002,306,048
9Oct 6, 2023 07:5318,94134,135,03313,543,0003,125,0002,387,968
10Oct 6, 2023 07:5319,02042,993,63313,600,0003,138,0002,478,080
11Oct 6, 2023 07:5319,23135,872,01913,937,0002,986,0002,437,120
12Oct 6, 2023 07:5319,29334,005,46113,982,0002,996,0002,355,200