{"id":26851412,"url":"https://github.com/azizemir/find-prime-numbers-androidstudio","last_synced_at":"2025-10-30T12:41:35.491Z","repository":{"id":143447898,"uuid":"603148522","full_name":"AzizEmir/Find-Prime-Numbers-androidStudio","owner":"AzizEmir","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-17T18:26:37.000Z","size":282,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T18:11:36.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AzizEmir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-17T18:07:19.000Z","updated_at":"2023-02-17T18:11:48.000Z","dependencies_parsed_at":"2023-07-03T06:45:23.047Z","dependency_job_id":null,"html_url":"https://github.com/AzizEmir/Find-Prime-Numbers-androidStudio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AzizEmir/Find-Prime-Numbers-androidStudio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizEmir%2FFind-Prime-Numbers-androidStudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizEmir%2FFind-Prime-Numbers-androidStudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizEmir%2FFind-Prime-Numbers-androidStudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizEmir%2FFind-Prime-Numbers-androidStudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzizEmir","download_url":"https://codeload.github.com/AzizEmir/Find-Prime-Numbers-androidStudio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzizEmir%2FFind-Prime-Numbers-androidStudio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004911,"owners_count":26083802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-30T22:31:22.700Z","updated_at":"2025-10-10T18:11:37.266Z","avatar_url":"https://github.com/AzizEmir.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kodlarımda ilk olarak EditTextlerden gelen sayi1 ve sayi2  viewlerin’den gelen verinin boş olup  olmadığını kontrol ediyor.\n\nEğer herhangi biri boş ise kullanıcıya Toast aracılığıyla “Alanlar Boş Bırakılamaz !” mesajı verir.\n\nDeğilse her iki alanda doldurulmuş demektir ve ardından hesaplama işlemleri gerçekleşir.\n\nİlk olarak “numaralar.clear();”  listenin temizlemesinin sebebi tekrar tekrar kullanıldıktan sonra hesaplanan sayıların üst üste eklemesinin istenmediğidir.\n\nArdından sayi1 ve sayi2 viewlerin’den gelen string tipinde veriler int tipine dönüştürülerek gelensayi1 ve gelensayi2 değişkenlerine atanır.\n\nBu hesaplama işleminde iç içe for döngüsü kullanılmaktadır. \n\nDış döngünün kullanılma amacı gelensayi2’nin kendinden önceki sayılara bölünüp bölünmediğidir. Bu kontrolü iç döngü ile yapar. \n\nİç döngünün kullanılma amacı gelensayi1’e eşit olan sayi değişkeni’nin asal olup olmadığını kontrol etmektir. Bunu içerisindeki if bloğu ile yapar.\n\nsayi değişkeni i değerine bölünüp bölünmediği içerisinde bulunan bir if bloğu ile kontrol edilir eğer herhangi bir i değişkenine sayıya bölünüyorsa, asal olmadığı anlaşılmıştır.\n\nBaşlangıçta 0 olan kontrol değişkeni’ni 1 artırır ve sonraki sayıları kontrol etmeye gerek kalmadığı için döngüden break komutu ile çıkılır.\n\nArdından kontrol değişkeni if bloğu ile kontrol edilir kontrol değeri 0 ise sayı asaldır ve global’de tanımlanan numaralar ArrayList’e eklenir. Kontrol değeri 1 ise sayı asal değil demektir.If bloğu içerisinde false değeri döneceğinden içerdeki işlemleri yapmayacaktır.\n\nArdından gelensayi1 değişkeri 1 artırılarak bu işlemler tekrardan yapılacaktır.\nBu işlemler dış döngüde bulunan gelensayi1 değişkeni, gelensayi2 değişkeni’nin değeri’nin 1 fazlası olana kadar devam edecektir.1 fazlası olduğu taktirde döngü içerisine girmeyecek ve hesaplama işlemi tamamlanmış olup, dış döngüden çıkılmıştır.\nString tipinde  tanımlanan asallar değişkenine numaralar ArrayList’i atanacaktır.\nSon adım olarak sonuc TextView’ine asallar yazdırılacaktır.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazizemir%2Ffind-prime-numbers-androidstudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazizemir%2Ffind-prime-numbers-androidstudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazizemir%2Ffind-prime-numbers-androidstudio/lists"}