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:55apuxbtapuxbtScore: 35,182Success
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:5534,95556,393,94928,710,0002,050,0002,265,088
2Nov 29, 2022 07:5534,97561,885,62229,753,0001,025,0002,265,088
3Nov 29, 2022 07:5535,09855,473,56329,890,000996,0002,265,088
4Nov 29, 2022 07:5535,10659,486,08529,897,000996,0002,265,088
5Nov 29, 2022 07:5535,11757,804,94627,913,0002,990,0002,379,776
6Nov 29, 2022 07:5535,13860,717,26330,921,00002,265,088
7Nov 29, 2022 07:5535,18256,047,20929,962,000998,0002,265,088
8Nov 29, 2022 07:5535,20087,646,54630,976,29702,236,416
9Nov 29, 2022 07:5535,208100,774,97030,982,79502,236,416
10Nov 29, 2022 07:5535,24856,229,30730,018,0001,000,0002,265,088
11Nov 29, 2022 07:5535,35657,732,52029,106,0002,007,0002,265,088
12Nov 29, 2022 07:5535,36186,722,02831,117,71202,232,320