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 listJul 13, 2023 18:45gchebanovgchebanovScore: 59,642Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 13, 2023 18:4554,436116,354,35747,903,68102,301,952
2Jul 13, 2023 18:4554,580101,043,32648,030,17302,297,856
3Jul 13, 2023 18:4556,209113,944,87549,464,08502,306,048
4Jul 13, 2023 18:4559,42774,809,13950,285,0002,011,0002,457,600
5Jul 13, 2023 18:4559,61581,454,23251,453,0001,008,0002,461,696
6Jul 13, 2023 18:4559,61678,873,98251,454,0001,008,0002,293,760
7Jul 13, 2023 18:4559,64280,488,14651,476,0001,009,0002,461,696
8Jul 13, 2023 18:4559,67875,055,15152,517,00002,293,760
9Jul 13, 2023 18:4559,68277,190,88952,520,00002,293,760
10Jul 13, 2023 18:4560,82780,068,94053,528,00002,293,760
11Jul 13, 2023 18:4560,88680,259,67853,580,00002,293,760
12Jul 13, 2023 18:4561,06684,924,06053,738,00002,293,760