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 27, 2021 05:20Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 05:2000000Error: expected "50887453853800 ", got "50887453853549 "
2Jun 27, 2021 05:2100000Error: expected "51187583637595 ", got "51187583637438 "
3Jun 27, 2021 05:2100000Error: expected "50877989537862 ", got "50877989537795 "
4Jun 27, 2021 05:2033,01187,247,93329,049,95802,191,360
5Jun 27, 2021 05:2033,11795,011,31629,143,27602,191,360
6Jun 27, 2021 05:2033,13656,470,61526,144,0003,016,0002,527,232
7Jun 27, 2021 05:2033,14455,878,18126,150,0003,017,0002,334,720
8Jun 27, 2021 05:2033,14556,988,35826,151,0003,017,0002,334,720
9Jun 27, 2021 05:2033,16749,240,55126,168,0003,019,0002,334,720
10Jun 27, 2021 05:2033,17654,147,39427,182,0002,013,0002,531,328
11Jun 27, 2021 05:2033,19258,211,14826,188,0003,021,0002,334,720
12Jun 27, 2021 05:2033,28053,859,38926,257,0003,029,0002,531,328
13Jun 27, 2021 05:2033,28153,025,97626,258,0003,029,0002,392,064
14Jun 27, 2021 05:2033,300110,152,26629,303,97102,195,456
15Jun 27, 2021 05:2033,37754,545,30626,334,0003,038,0002,523,136