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 27, 2021 04:58Yuriy LyfenkoYuriy LyfenkoScore: 36,374Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 04:5834,351106,852,50230,228,70402,220,032
2Jun 27, 2021 04:5834,53289,448,32430,387,84602,228,224
3Jun 27, 2021 04:5834,55797,326,63030,410,15102,215,936
4Jun 27, 2021 04:5836,34058,575,84629,981,0001,998,0002,379,776
5Jun 27, 2021 04:5836,34858,317,19530,987,000999,0002,269,184
6Jun 27, 2021 04:5836,37462,617,05530,009,0002,000,0002,367,488
7Jun 27, 2021 04:5836,37461,358,08230,009,0002,000,0002,269,184
8Jun 27, 2021 04:5836,41659,793,22931,045,0001,001,0002,269,184
9Jun 27, 2021 04:5836,47562,504,17830,092,0002,006,0002,269,184
10Jun 27, 2021 04:5836,48359,859,10030,099,0002,006,0002,269,184
11Jun 27, 2021 04:5836,57259,582,34431,178,0001,005,0002,379,776
12Jun 27, 2021 04:5836,58360,698,07330,181,0002,012,0002,269,184