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 listJun 26, 2021 20:34Yuriy LyfenkoYuriy LyfenkoScore: 33,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:3433,104101,465,39229,131,19502,183,168
2Jun 26, 2021 20:3433,10495,974,19429,131,18602,183,168
3Jun 26, 2021 20:3433,14150,849,28726,147,0003,017,0002,523,136
4Jun 26, 2021 20:3433,15950,133,68826,162,0003,018,0002,531,328
5Jun 26, 2021 20:3433,25357,055,59127,245,0002,018,0002,334,720
6Jun 26, 2021 20:3433,25758,575,78027,248,0002,018,0002,531,328
7Jun 26, 2021 20:3433,26551,962,79928,264,0001,009,0002,527,232
8Jun 26, 2021 20:3433,26957,593,77927,258,0002,019,0002,523,136
9Jun 26, 2021 20:3433,32689,172,28329,326,48002,187,264
10Jun 26, 2021 20:3433,34058,693,92827,316,0002,023,0002,531,328
11Jun 26, 2021 20:3433,37452,868,12527,344,0002,025,0002,523,136
12Jun 26, 2021 20:3433,47557,271,88928,443,0001,015,0002,527,232