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 listDec 29, 2022 02:57Yuriy LyfenkoYuriy LyfenkoScore: 28,347Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:5728,06947,261,76523,672,0001,029,0002,387,968
2Dec 29, 2022 02:5728,29350,948,30422,907,0001,991,0002,527,232
3Dec 29, 2022 02:5728,30051,289,48023,908,000996,0002,265,088
4Dec 29, 2022 02:5728,30153,478,71923,909,000996,0002,392,064
5Dec 29, 2022 02:5728,30552,846,49922,916,0001,992,0002,387,968
6Dec 29, 2022 02:5728,33549,498,55822,941,0001,994,0002,387,968
7Dec 29, 2022 02:5728,34750,613,02023,948,000997,0002,387,968
8Dec 29, 2022 02:5728,40152,110,27323,994,000999,0002,527,232
9Dec 29, 2022 02:5728,46356,270,81223,044,0002,003,0002,527,232
10Dec 29, 2022 02:5728,91892,140,49825,447,60102,224,128
11Dec 29, 2022 02:5728,93180,906,60525,459,26502,224,128
12Dec 29, 2022 02:5729,07693,242,23225,586,89302,236,416