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 21:08Yuriy LyfenkoYuriy LyfenkoScore: 49,506Success
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 21:0849,35667,705,79043,433,00002,269,184
2Jun 27, 2021 21:0849,41164,505,75342,471,0001,011,0002,269,184
3Jun 27, 2021 21:0849,44063,178,85942,496,0001,011,0002,375,680
4Jun 27, 2021 21:0849,47071,707,64243,534,00002,269,184
5Jun 27, 2021 21:0849,48065,928,14443,542,00002,379,776
6Jun 27, 2021 21:0849,49071,234,53242,539,0001,012,0002,269,184
7Jun 27, 2021 21:0849,50667,968,15043,565,00002,269,184
8Jun 27, 2021 21:0849,59469,506,68142,629,0001,014,0002,375,680
9Jun 27, 2021 21:0849,87371,369,37841,894,0001,994,0002,269,184
10Jun 27, 2021 21:0850,656108,086,66944,577,70902,215,936
11Jun 27, 2021 21:0850,76996,738,85244,676,61502,215,936
12Jun 27, 2021 21:0850,909126,516,57144,799,89902,224,128