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 23, 2023 20:25Kenneth MaplesKenneth MaplesScore: 25,165Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 20:2525,04547,601,86821,039,0001,001,0002,265,088
2Dec 23, 2023 20:2525,05351,136,84721,045,0001,002,0002,265,088
3Dec 23, 2023 20:2525,06050,621,27121,051,0001,002,0002,265,088
4Dec 23, 2023 20:2525,06448,021,39621,054,0001,002,0002,265,088
5Dec 23, 2023 20:2525,07654,633,54520,061,0002,006,0002,269,184
6Dec 23, 2023 20:2525,11347,976,51120,090,0002,009,0002,383,872
7Dec 23, 2023 20:2525,16549,134,96320,132,0002,013,0002,396,160
8Dec 23, 2023 20:2525,18846,399,14321,158,0001,007,0002,387,968
9Dec 23, 2023 20:2525,27646,299,25221,232,0001,011,0002,506,752
10Dec 23, 2023 20:2525,66492,801,22922,583,88502,232,320
11Dec 23, 2023 20:2525,709103,687,53322,624,07502,244,608
12Dec 23, 2023 20:2525,74885,947,28422,658,37002,244,608