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 listNov 29, 2022 06:10apuxbtapuxbtScore: 36,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 06:1036,10863,922,24430,750,0001,025,0002,265,088
2Nov 29, 2022 06:1036,22456,069,24629,885,0001,992,0002,265,088
3Nov 29, 2022 06:1036,23258,507,71128,895,0002,989,0002,326,528
4Nov 29, 2022 06:1036,24065,582,10228,902,0002,989,0002,318,336
5Nov 29, 2022 06:1036,25763,775,68029,912,0001,994,0002,441,216
6Nov 29, 2022 06:1036,28860,891,73429,938,0001,995,0002,265,088
7Nov 29, 2022 06:1036,33959,558,04629,980,0001,998,0002,314,240
8Nov 29, 2022 06:1036,34260,470,79829,983,0001,998,0002,265,088
9Nov 29, 2022 06:1036,40157,513,21829,030,0003,003,0002,265,088
10Nov 29, 2022 06:1037,581101,028,15933,071,05102,297,856
11Nov 29, 2022 06:1037,65397,378,58533,134,63502,240,512
12Nov 29, 2022 06:1037,661126,287,23333,141,46802,297,856