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:16Yuriy LyfenkoYuriy LyfenkoScore: 42,503Success
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:1642,40688,616,58637,317,19402,195,456
2Jun 26, 2021 20:1642,420127,284,92237,329,26402,195,456
3Jun 26, 2021 20:1642,427111,798,29837,336,04402,183,168
4Jun 26, 2021 20:1642,47564,183,92236,368,0001,010,0002,334,720
5Jun 26, 2021 20:1642,49566,496,18436,386,0001,010,0002,523,136
6Jun 26, 2021 20:1642,50262,283,03836,392,0001,010,0002,531,328
7Jun 26, 2021 20:1642,50360,064,64336,393,0001,010,0002,334,720
8Jun 26, 2021 20:1642,60259,437,35635,464,0002,026,0002,334,720
9Jun 26, 2021 20:1642,64157,490,93235,496,0002,028,0002,523,136
10Jun 26, 2021 20:1642,69557,232,49236,557,0001,015,0002,334,720
11Jun 26, 2021 20:1642,84864,080,42937,706,00002,334,720
12Jun 26, 2021 20:1642,87262,530,08336,708,0001,019,0002,334,720