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 28, 2022 08:24Yuriy LyfenkoYuriy LyfenkoScore: 34,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 08:2430,73588,018,72727,046,72302,207,744
2Dec 28, 2022 08:2430,92097,205,11927,209,61602,236,416
3Dec 28, 2022 08:2431,082102,825,47527,352,42302,215,936
4Dec 28, 2022 08:2434,35356,448,52229,224,0001,007,0002,383,872
5Dec 28, 2022 08:2434,45150,746,76129,307,0001,010,0002,269,184
6Dec 28, 2022 08:2434,46160,567,69030,326,00002,269,184
7Dec 28, 2022 08:2434,48250,079,83529,333,0001,011,0002,375,680
8Dec 28, 2022 08:2434,48460,227,46028,323,0002,023,0002,371,584
9Dec 28, 2022 08:2434,49360,814,72130,354,00002,269,184
10Dec 28, 2022 08:2434,54453,519,71230,399,00002,387,968
11Dec 28, 2022 08:2434,58864,039,67729,423,0001,014,0002,269,184
12Dec 28, 2022 08:2434,69056,593,39429,510,0001,017,0002,379,776