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 06:30Yuriy LyfenkoYuriy LyfenkoScore: 63,059Success
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 06:3047,122131,660,71141,467,26102,244,608
2Dec 28, 2022 06:3047,167107,215,38141,507,23602,215,936
3Dec 28, 2022 06:3047,20397,772,90641,539,04302,232,320
4Dec 28, 2022 06:3062,80076,499,04555,264,00002,457,600
5Dec 28, 2022 06:3062,89781,929,85854,343,0001,006,0002,269,184
6Dec 28, 2022 06:3062,96579,837,83755,409,00002,375,680
7Dec 28, 2022 06:3063,05979,459,08354,484,0001,008,0002,269,184
8Dec 28, 2022 06:3063,07483,685,96654,496,0001,009,0002,269,184
9Dec 28, 2022 06:3063,08383,072,00254,504,0001,009,0002,379,776
10Dec 28, 2022 06:3063,09278,013,70854,512,0001,009,0002,273,280
11Dec 28, 2022 06:3063,23177,437,76655,643,00002,375,680
12Dec 28, 2022 06:3063,25884,281,18354,655,0001,012,0002,379,776