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:11Yuriy LyfenkoYuriy LyfenkoScore: 28,541Success
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:1128,30251,592,86823,910,000996,0002,527,232
2Dec 28, 2022 08:1128,30350,606,73323,911,000996,0002,265,088
3Dec 28, 2022 08:1128,43553,885,87624,023,0001,000,0002,527,232
4Dec 28, 2022 08:1128,48248,927,97424,062,0001,002,0002,392,064
5Dec 28, 2022 08:1128,48452,528,04023,061,0002,005,0002,265,088
6Dec 28, 2022 08:1128,49448,569,27624,072,0001,003,0002,527,232
7Dec 28, 2022 08:1128,54154,216,92724,112,0001,004,0002,527,232
8Dec 28, 2022 08:1128,54253,252,17523,108,0002,009,0002,265,088
9Dec 28, 2022 08:1128,56751,533,17323,128,0002,011,0002,387,968
10Dec 28, 2022 08:1129,38189,843,86725,855,09802,232,320
11Dec 28, 2022 08:1129,58892,847,86926,037,09402,240,512
12Dec 28, 2022 08:1129,63387,906,19026,076,71802,232,320