Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# HumanEval/82
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
def prime_length(string):
|
||||
"""Write a function that takes a string and returns True if the string
|
||||
length is a prime number or False otherwise
|
||||
Examples
|
||||
prime_length('Hello') == True
|
||||
prime_length('abcdcba') == True
|
||||
prime_length('kittens') == True
|
||||
prime_length('orange') == False
|
||||
"""
|
||||
n = len(string)
|
||||
if n < 2:
|
||||
return False
|
||||
for i in range(2, int(n ** 0.5) + 1):
|
||||
if n % i == 0:
|
||||
return False
|
||||
return True
|
||||
Reference in New Issue
Block a user