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 listJul 23, 2023 06:47matsuoka-601matsuoka-601Score: 32,165Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 06:4731,711100,986,94527,905,97702,179,072
2Jul 23, 2023 06:4731,72990,814,30027,921,77802,199,552
3Jul 23, 2023 06:4731,78880,711,08927,973,32002,191,360
4Jul 23, 2023 06:4731,98649,222,25426,138,0002,010,0002,465,792
5Jul 23, 2023 06:4732,05949,487,87525,190,0003,022,0002,473,984
6Jul 23, 2023 06:4732,06349,463,69525,192,0003,023,0002,461,696
7Jul 23, 2023 06:4732,16548,807,03727,295,0001,010,0002,457,600
8Jul 23, 2023 06:4732,19750,739,85924,286,0004,047,0002,289,664
9Jul 23, 2023 06:4732,28048,434,02224,348,0004,058,0002,301,952
10Jul 23, 2023 06:4732,28453,467,33724,352,0004,058,0002,289,664
11Jul 23, 2023 06:4732,33151,440,11024,387,0004,064,0002,461,696
12Jul 23, 2023 06:4732,34953,362,34825,417,0003,050,0002,289,664