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 listJun 26, 2021 21:19Yuriy LyfenkoYuriy LyfenkoScore: 44,257Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 21:1938,971104,521,90334,294,40602,220,032
2Jun 26, 2021 21:1939,05584,645,46234,368,77002,215,936
3Jun 26, 2021 21:1939,09793,722,12934,405,59602,215,936
4Jun 26, 2021 21:1944,19065,974,78036,893,0001,994,0002,269,184
5Jun 26, 2021 21:1944,20064,659,30736,902,0001,994,0002,269,184
6Jun 26, 2021 21:1944,20665,874,12637,904,000997,0002,269,184
7Jun 26, 2021 21:1944,25765,662,77436,949,0001,997,0002,269,184
8Jun 26, 2021 21:1944,31669,215,99136,999,0001,999,0002,269,184
9Jun 26, 2021 21:1944,37475,894,00737,047,0002,002,0002,375,680
10Jun 26, 2021 21:1944,38268,682,58738,055,0001,001,0002,269,184
11Jun 26, 2021 21:1944,39065,200,51837,060,0002,003,0002,375,680
12Jun 26, 2021 21:1944,40868,023,35037,075,0002,004,0002,469,888