"""Create logic_validator
Generated by Phi-Octopus Eden
2025-11-08 16:47:55.821368
"""

```python
from typing import Callable, TypeVar, Generic

T = TypeVar('T')

class LogicValidator(Generic[T]):
    """
    A class to validate logical conditions of a given value based on predefined rules.

    Args:
        validator_function: A callable that takes an input and returns True if it satisfies the condition.
    
    Example usage:

    >>> def is_even(number: int) -> bool:
    ...     return number % 2 == 0
    ...
    >>> validator = LogicValidator(is_even)
    >>> validator(4)  # Returns True
    >>> validator(3)  # Returns False

    """
    def __init__(self, validator_function: Callable[[T], bool]):
        self.validator_function = validator_function

    def validate(self, value: T) -> bool:
        """
        Validate the input value according to the defined logic.

        Args:
            value: The value to be validated against the condition.
        
        Returns:
            True if the condition is met, False otherwise.
        """
        return self.validator_function(value)


def is_prime(number: int) -> bool:
    """Check if a number is prime."""
    if number <= 1:
        return False
    for i in range(2, int(number**0.5) + 1):
        if number % i == 0:
            return False
    return True


# Example usage of LogicValidator with the is_prime function
if __name__ == "__main__":
    prime_validator = LogicValidator(is_prime)
    print(prime_validator.validate(7))  # Should return True
    print(prime_validator.validate(15))  # Should return False

```