This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <algorithm> | |
#include <vector> | |
#include <cstdlib> | |
#include <stdint.h> | |
int64_t Euclidean_Diophantine( int64_t coeff_a, int64_t coeff_b) | |
{ | |
// return y in Diophantine equation coeff_a x + coeff_b y = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# segmented wheel sieve python | |
import time | |
import numpy as np | |
from math import isqrt | |
def segmented_wheel_sieve(n , max_bW): | |
dim_seg = 2**22 | |
bW = 30 | |
n_PB = 3 |
OlderNewer