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 07:43apuxbtapuxbtScore: 34,155Success
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 07:4333,83862,036,40429,777,00002,379,776
2Nov 29, 2022 07:4333,96861,550,80727,900,0001,992,0002,265,088
3Nov 29, 2022 07:4333,98953,322,06627,916,0001,994,0002,482,176
4Nov 29, 2022 07:4334,00159,828,13629,921,00002,265,088
5Nov 29, 2022 07:4334,00256,182,92727,928,0001,994,0002,387,968
6Nov 29, 2022 07:4334,11452,793,77529,020,0001,000,0002,265,088
7Nov 29, 2022 07:4334,15555,523,63528,053,0002,003,0002,383,872
8Nov 29, 2022 07:4334,17356,748,79628,068,0002,004,0002,375,680
9Nov 29, 2022 07:4334,19355,890,03228,084,0002,006,0002,387,968
10Nov 29, 2022 07:4335,252106,782,79031,022,04802,236,416
11Nov 29, 2022 07:4335,29391,924,09831,058,12502,236,416
12Nov 29, 2022 07:4335,307108,366,04531,070,26702,232,320