"""simple docstring"""





import torch





def 				a_     (      ):





       '''simple docstring'''

       if torch.cuda.is_available():
              lowercase__			:		Tuple       =	torch.cuda.device_count()
       else:
              lowercase__			:		Optional[int]       =	0
       print(f"""Successfully ran on {num_gpus} GPUs"""     )


if __name__ == "__main__":
       main()



def     _a					(						lowerCamelCase							):

 if p < 2:
  raise ValueError("""p should not be less than 2!"""							)
 elif p == 2:
  return True

 lowerCamelCase		:	Any							=      4
 lowerCamelCase		:	List[str]							=      (1 << p) - 1
 for _ in range(p - 2							):
  lowerCamelCase		:	List[Any]							=      ((s * s) - 2) % m
 return s == 0


if __name__ == "__main__":
      print(lucas_lehmer_test(7))
      print(lucas_lehmer_test(1_1))




