Çözüldü Greatest Common Divisor - Prime Numbers - Programming

Konusu 'Doğal Sayılar,Tam Sayılar,Bölme Bölünebilme,EBOB-EKOK' forumundadır ve Honore tarafından 11 Nisan 2026 15:07 başlatılmıştır.

Yüklüyor...
  1. Honore

    Honore Yönetici Yönetici

    Mesajlar:
    11.053
    Beğenileri:
    652
    Cinsiyet:
    Bay
    Meslek:
    Müh. (Elk./Bilg.)
    For science high school's classic exam:

    If the greatest common divisor of two three-digit numbers is forty, find the maximum difference between them and write a code in any programming language you know to compute it.

    For the maximum difference between two three-digit numbers sayi1 and sayi2 > sayi1, excluding 2 as the smallest prime number, which is already a divisor of 40 sayi2 - sayi1 = 40·(largest prime number - minimum prime number) = 40·(23 - 3) = 40·20 = 800.

    Fortran Code:
    [​IMG]
    https://i.ibb.co/fdrBs0my/Ecrin-Fortran.png

    Original Turkish Version of The Problem:
    [​IMG]
    https://i.ibb.co/fzTyQkTh/Ecrin-EBOB.png
    https://drive.google.com/file/d/1MbzpekNHOSPhkaN4kT2RDljfu58lVL4C/view
    (Page 11, Question 9)

  2. Benzer Konular: Greatest Common
    Forum Başlık Tarih
    Doğal Sayılar,Tam Sayılar,Bölme Bölünebilme,EBOB-EKOK Aralarında Asal Sayılarda EBOB (Greatest Common Divisor) 26 Nisan 2022
    Mantık,Kümeler,Bağıntı ve Fonksiyon,İşlem ve Moduler Aritmetik Congruence - Modular Arithmetic - Greatest Common Divisor - Divisibility 7 Şubat 2019
    TOEFL - IELTS - SAT - ACT - GRE - GMAT Hazırlık Greatest Value Function - Absolute Value Function - Differentiation 31 Temmuz 2023
    Limit ve Süreklilik,Türev,İntegral Integration with Greatest Integer (Floor) Function 8 Nisan 2021
    YDS - YDT - YÖKDİL - TOEFL - IELTS - SAT - ACT - GRE - GMAT Least Common Multiple Open-End Problem (GRE Level) 8 Kasım 2025

Sayfayı Paylaş