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 17, 2024 10:03Ivan BessonovIvan BessonovScore: 27,150Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 10:0326,95549,662,13422,689,0001,031,0002,281,472
2May 17, 2024 10:0326,99147,267,77322,720,0001,032,0002,265,088
3May 17, 2024 10:0327,00951,556,48622,735,0001,033,0002,269,184
4May 17, 2024 10:0327,03147,226,46622,753,0001,034,0002,269,184
5May 17, 2024 10:0327,11848,324,02321,876,0001,988,0002,289,664
6May 17, 2024 10:0327,14849,715,74421,900,0001,990,0002,273,280
7May 17, 2024 10:0327,15054,146,54321,901,0001,991,0002,269,184
8May 17, 2024 10:0327,17253,142,77021,919,0001,992,0002,289,664
9May 17, 2024 10:0327,19084,917,33323,927,15402,252,800
10May 17, 2024 10:0327,30651,205,25922,027,0002,002,0002,289,664
11May 17, 2024 10:0327,34288,833,32324,060,74002,252,800
12May 17, 2024 10:0327,35990,136,59524,076,26102,248,704