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 30, 2022 19:08apuxbtapuxbtScore: 36,070Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 30, 2022 19:0835,21790,893,25930,990,55102,236,416
2Nov 30, 2022 19:0835,22898,326,03231,000,96002,232,320
3Nov 30, 2022 19:0835,42992,816,62731,177,63902,248,704
4Nov 30, 2022 19:0835,91756,531,69830,588,0001,019,0002,265,088
5Nov 30, 2022 19:0835,95253,445,08931,638,00002,265,088
6Nov 30, 2022 19:0835,99860,565,99630,657,0001,021,0002,265,088
7Nov 30, 2022 19:0836,07063,781,92630,719,0001,023,0002,383,872
8Nov 30, 2022 19:0836,07260,219,11131,743,00002,265,088
9Nov 30, 2022 19:0836,12460,318,37130,764,0001,025,0002,265,088
10Nov 30, 2022 19:0836,23158,976,27730,887,000996,0002,265,088
11Nov 30, 2022 19:0836,24964,678,79630,903,000996,0002,265,088
12Nov 30, 2022 19:0836,27456,904,40330,924,000997,0002,392,064