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 listDec 28, 2022 07:38Yuriy LyfenkoYuriy LyfenkoScore: 35,858Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 07:3830,75197,245,20927,061,07502,220,032
2Dec 28, 2022 07:3830,82399,335,99527,124,46802,215,936
3Dec 28, 2022 07:3830,86481,015,76727,160,73002,215,936
4Dec 28, 2022 07:3835,78954,792,77930,479,0001,015,0002,527,232
5Dec 28, 2022 07:3835,83056,639,65630,513,0001,017,0002,269,184
6Dec 28, 2022 07:3835,84551,645,58030,527,0001,017,0002,269,184
7Dec 28, 2022 07:3835,85858,699,26131,555,00002,269,184
8Dec 28, 2022 07:3835,91951,062,30031,609,00002,269,184
9Dec 28, 2022 07:3835,95057,942,56630,616,0001,020,0002,371,584
10Dec 28, 2022 07:3835,99261,070,15831,673,00002,269,184
11Dec 28, 2022 07:3836,03165,230,68630,685,0001,022,0002,379,776
12Dec 28, 2022 07:3836,41657,969,83930,044,0002,002,0002,269,184