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 listFeb 15, 2024 12:16Robert BurkeRobert BurkeScore: 21,597Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 12:1619,00650,918,44716,725,22202,256,896
2Feb 15, 2024 12:1619,04076,313,36716,755,32802,265,088
3Feb 15, 2024 12:1619,11764,864,44716,823,03602,260,992
4Feb 15, 2024 12:1621,49744,160,46216,926,0001,991,0002,281,472
5Feb 15, 2024 12:1621,50943,133,73416,936,0001,992,0002,420,736
6Feb 15, 2024 12:1621,53940,577,01116,959,0001,995,0002,281,472
7Feb 15, 2024 12:1621,59734,692,68317,005,0002,000,0002,420,736
8Feb 15, 2024 12:1621,61445,715,37217,018,0002,002,0002,281,472
9Feb 15, 2024 12:1621,63137,197,83017,032,0002,003,0002,420,736
10Feb 15, 2024 12:1621,63845,887,43917,037,0002,004,0002,281,472
11Feb 15, 2024 12:1621,69344,551,76518,086,0001,004,0002,412,544
12Feb 15, 2024 12:1621,72642,161,31317,107,0002,012,0002,412,544