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:17Yuriy LyfenkoYuriy LyfenkoScore: 33,700Success
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:1733,43352,525,81428,407,0001,014,0002,531,328
2Jun 27, 2021 05:1733,47392,536,81829,456,10402,183,168
3Jun 27, 2021 05:1733,48492,958,37529,466,24102,179,072
4Jun 27, 2021 05:1733,48849,294,67627,437,0002,032,0002,523,136
5Jun 27, 2021 05:1733,49260,707,49527,441,0002,032,0002,334,720
6Jun 27, 2021 05:1733,52992,081,38629,505,76702,203,648
7Jun 27, 2021 05:1733,54388,498,27229,518,06102,187,264
8Jun 27, 2021 05:1733,582111,893,23729,551,77902,187,264
9Jun 27, 2021 05:1733,62649,162,04828,571,0001,020,0002,334,720
10Jun 27, 2021 05:1733,63054,350,25427,553,0002,041,0002,527,232
11Jun 27, 2021 05:1733,64384,932,82729,605,88002,191,360
12Jun 27, 2021 05:1733,66651,641,37027,583,0002,043,0002,527,232
13Jun 27, 2021 05:1733,70055,554,10028,634,0001,022,0002,310,144
14Jun 27, 2021 05:1733,73660,938,81827,641,0002,047,0002,527,232
15Jun 27, 2021 05:1733,73960,953,37628,667,0001,023,0002,514,944
16Jun 27, 2021 05:1733,73958,280,26128,667,0001,023,0002,334,720
17Jun 27, 2021 05:1733,75156,988,81827,653,0002,048,0002,531,328
18Jun 27, 2021 05:1733,76957,665,08228,693,0001,024,0002,334,720
19Jun 27, 2021 05:1733,77556,188,39727,673,0002,049,0002,334,720
20Jun 27, 2021 05:1733,77657,680,69428,699,0001,024,0002,531,328
21Jun 27, 2021 05:1733,79960,565,46629,743,00002,531,328
22Jun 27, 2021 05:1733,80257,230,89328,721,0001,025,0002,531,328
23Jun 27, 2021 05:1733,84158,099,33927,727,0002,053,0002,523,136
24Jun 27, 2021 05:1733,98855,098,07729,909,00002,367,488