human
Check if a number is divisible by 17 using bitwise operators | function to check recursively if the number is divisible by 17 or not.
if n = 0 or n = 17 then yes.
if n is less then 17 , not divisible by 17.
reducing the number by floor ( n / 16 ) - n % 16.
driver code to check the above function"
Solution in Python:
assistant
#Here is code to check if a number is divisible by 17 using bitwise operators and the other steps required.
 def isDivisibleby17 ( n ) :
	if ( n == 0 or n == 17 ) :
		return True
	if ( n < 17 ) :
		return False
	return isDivisibleby17 ( ( int ) ( n >> 4 ) - ( int ) ( n & 15 ) )
n = 35
if ( isDivisibleby17 ( n ) ) :
	print ( n , " is ▁ divisible ▁ by ▁ 17" )
else :
	print ( n , " is ▁ not ▁ divisible ▁ by ▁ 17" )