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 17:13apuxbtapuxbtScore: 30,494Success
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 17:1330,11052,688,13825,478,0001,019,0002,387,968
2Dec 1, 2022 17:1330,12652,484,42125,492,0001,019,0002,269,184
3Dec 1, 2022 17:1330,19151,860,64325,547,0001,021,0002,265,088
4Dec 1, 2022 17:1330,21646,295,31625,568,0001,022,0002,387,968
5Dec 1, 2022 17:1330,23951,441,68025,587,0001,023,0002,265,088
6Dec 1, 2022 17:1330,25954,490,09425,604,0001,024,0002,265,088
7Dec 1, 2022 17:1330,32354,773,92426,684,00002,265,088
8Dec 1, 2022 17:1130,49486,010,42926,834,92202,232,320
9Dec 1, 2022 17:1330,54953,060,59824,892,0001,991,0002,392,064
10Dec 1, 2022 17:1330,58156,507,37226,911,00002,265,088
11Dec 1, 2022 17:1330,59789,721,19026,925,79502,224,128
12Dec 1, 2022 17:1330,64394,748,33826,965,74302,244,608
13Dec 1, 2022 17:1130,674104,535,83126,993,26002,244,608
14Dec 1, 2022 17:1130,67796,002,21526,995,40602,240,512
15Dec 1, 2022 17:1330,77580,423,25927,081,63802,240,512