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 14, 2024 15:09Ivan BessonovIvan BessonovScore: 36,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:0932,040102,276,13828,195,23802,273,280
2May 14, 2024 15:0932,074107,578,55128,225,41802,260,992
3May 14, 2024 15:0932,114111,842,66928,260,37202,256,896
4May 14, 2024 15:0936,45754,957,73130,077,0002,005,0002,289,664
5May 14, 2024 15:0936,47058,874,08330,089,0002,005,0002,269,184
6May 14, 2024 15:0936,48258,223,26130,098,0002,006,0002,273,280
7May 14, 2024 15:0936,50054,588,25230,113,0002,007,0002,293,760
8May 14, 2024 15:0936,52554,606,05530,134,0002,008,0002,281,472
9May 14, 2024 15:0936,55658,410,07830,159,0002,010,0002,289,664
10May 14, 2024 15:0936,58659,047,37731,190,0001,006,0002,269,184
11May 14, 2024 15:0936,59553,401,19530,192,0002,012,0002,289,664
12May 14, 2024 15:0936,75959,618,75830,327,0002,021,0002,273,280