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 1, 2022 08:03apuxbtapuxbtScore: 31,182Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 08:0331,09153,193,07627,360,00002,269,184
2Dec 1, 2022 08:0331,09247,771,24026,348,0001,013,0002,523,136
3Dec 1, 2022 08:0331,10755,134,11026,361,0001,013,0002,277,376
4Dec 1, 2022 08:0331,114100,916,19127,380,26002,248,704
5Dec 1, 2022 08:0331,15699,037,68227,417,20602,244,608
6Dec 1, 2022 08:0331,16588,076,54427,425,01402,260,992
7Dec 1, 2022 08:0331,18249,265,87527,440,00002,289,664
8Dec 1, 2022 08:0331,18848,773,67326,429,0001,016,0002,269,184
9Dec 1, 2022 08:0331,23551,599,77927,487,00002,269,184
10Dec 1, 2022 08:0331,29753,600,09726,521,0001,020,0002,289,664
11Dec 1, 2022 08:0331,36349,508,86026,577,0001,022,0002,289,664
12Dec 1, 2022 08:0331,40954,074,24426,617,0001,023,0002,293,760