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 listMay 18, 2024 14:17Ivan BessonovIvan BessonovScore: 19,814Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 14:1719,72649,536,67015,317,0002,042,0002,289,664
2May 18, 2024 14:1719,73343,787,89216,344,0001,021,0002,289,664
3May 18, 2024 14:1719,74940,180,73316,357,0001,022,0002,289,664
4May 18, 2024 14:1719,76340,239,05115,345,0002,046,0002,297,856
5May 18, 2024 14:1719,78832,836,56016,389,0001,024,0002,285,568
6May 18, 2024 14:1719,80734,385,13516,405,0001,025,0002,289,664
7May 18, 2024 14:1719,81440,299,23416,411,0001,025,0002,289,664
8May 18, 2024 14:1720,45046,992,91715,997,0001,999,0002,301,952
9May 18, 2024 14:1720,53235,487,39016,061,0002,007,0002,293,760
10May 18, 2024 14:1721,35395,743,94518,790,79902,256,896
11May 18, 2024 14:1721,91790,461,66919,286,60202,281,472
12May 18, 2024 14:1722,08791,549,93019,436,27902,269,184