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 4, 2023 12:27Robert BurkeRobert BurkeScore: 21,831Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2718,06767,933,99915,899,18402,232,320
2Oct 4, 2023 12:2718,24767,908,04016,057,54202,232,320
3Oct 4, 2023 12:2718,27582,785,50216,082,00702,215,936
4Oct 4, 2023 12:2721,73843,142,92917,116,0002,013,0002,535,424
5Oct 4, 2023 12:2721,75843,242,35617,132,0002,015,0002,392,064
6Oct 4, 2023 12:2721,82241,890,04517,182,0002,021,0002,396,160
7Oct 4, 2023 12:2721,83141,202,03517,189,0002,022,0002,486,272
8Oct 4, 2023 12:2721,88448,234,62518,245,0001,013,0002,392,064
9Oct 4, 2023 12:2721,89039,989,57818,250,0001,013,0002,273,280
10Oct 4, 2023 12:2721,89442,198,05817,239,0002,028,0002,502,656
11Oct 4, 2023 12:2721,95242,976,34518,302,0001,016,0002,273,280
12Oct 4, 2023 12:2722,09440,609,88018,420,0001,023,0002,396,160