Atelier des rouesLab FR
Objects/Documentation

intervalle.py

I compare band merging with an anchor followed by a segmented sieve.

Download ↓
"""Compare two exact backends for consecutive prime-rank queries."""
import argparse
from bisect import bisect_right
import json
from math import isqrt
import platform
import sys

from partager import CAP, fill, measure, shared
from quotients import domain, sieve_quotients
from rang_premiers import oracle


def interval_keys(a, b):
    if not 0 <= a <= b:
        raise ValueError("Expected 0 <= a <= b")

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.