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 02:40Yuriy LyfenkoYuriy LyfenkoScore: 44,623Success
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 02:4043,085103,147,25737,914,78902,224,128
2Jun 27, 2021 02:4043,15896,016,93937,978,88402,215,936
3Jun 27, 2021 02:4043,229106,456,32938,041,10802,244,608
4Jun 27, 2021 02:4044,59574,166,54338,238,0001,006,0002,269,184
5Jun 27, 2021 02:4044,60265,794,69737,238,0002,012,0002,269,184
6Jun 27, 2021 02:4044,60366,359,67738,245,0001,006,0002,383,872
7Jun 27, 2021 02:4044,62365,265,98438,262,0001,006,0002,379,776
8Jun 27, 2021 02:4044,69160,876,10038,320,0001,008,0002,469,888
9Jun 27, 2021 02:4044,71766,045,10738,342,0001,009,0002,375,680
10Jun 27, 2021 02:4044,72762,474,75938,351,0001,009,0002,269,184
11Jun 27, 2021 02:4044,73964,646,37539,370,00002,371,584
12Jun 27, 2021 02:4044,78062,413,34439,406,00002,371,584