Skip to content

Commit

Permalink
More test versions, fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 12, 2024
1 parent e5b8934 commit 33d3ddf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
- nightly # currently = 1.81
- beta # currently = 1.80
- stable # currently = 1.79
os:
- ubuntu-latest
- windows-latest
Expand All @@ -27,10 +27,26 @@ jobs:
os: macos-13
- toolchain: stable
os: macos-latest
- toolchain: "1.69"
- toolchain: "1.78"
os: ubuntu-latest
- toolchain: "1.77"
os: ubuntu-latest
- toolchain: "1.76"
os: ubuntu-latest
- toolchain: "1.75"
os: ubuntu-latest
- toolchain: "1.74"
os: ubuntu-latest
- toolchain: "1.73"
os: ubuntu-latest
- toolchain: "1.72"
os: ubuntu-latest
- toolchain: "1.71"
os: ubuntu-latest
- toolchain: "1.70"
os: ubuntu-latest
- toolchain: "1.69"
os: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions rust/src/p0003.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
*/
mod primes;
use crate::primes::prime_factors;

pub fn p0003() -> u64 {
return primes::prime_factors(600851475143).max();
return prime_factors(600851475143).max();
}

0 comments on commit 33d3ddf

Please sign in to comment.