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 listAug 31, 2024 21:54Yuriy LyfenkoYuriy LyfenkoScore: 28,286Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2024 21:5427,99550,534,94223,610,0001,026,0002,281,472
2Aug 31, 2024 21:5428,16455,700,69224,784,00002,281,472
3Aug 31, 2024 21:5428,16852,792,23623,756,0001,032,0002,277,376
4Aug 31, 2024 21:5428,24951,055,56522,871,0001,988,0002,269,184
5Aug 31, 2024 21:5428,25150,318,64522,873,0001,988,0002,273,280
6Aug 31, 2024 21:5428,28357,211,08422,898,0001,991,0002,285,568
7Aug 31, 2024 21:5428,28650,800,41623,897,000995,0002,269,184
8Aug 31, 2024 21:5428,28657,045,46322,901,0001,991,0002,285,568
9Aug 31, 2024 21:5428,29753,353,97523,905,000996,0002,277,376
10Aug 31, 2024 21:5428,29758,201,81822,909,0001,992,0002,285,568
11Aug 31, 2024 21:5428,37857,685,07022,976,0001,997,0002,285,568
12Aug 31, 2024 21:5428,41847,708,67224,008,0001,000,0002,285,568