Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
コーナーケースに気をつけろ!
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
lavox
November 24, 2019
Programming
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
コーナーケースに気をつけろ!
lavox
November 24, 2019
Other Decks in Programming
See All in Programming
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
golang-bob.pdf
iwatsukayura
0
130
ジョジョの世界をXRで再現する
mofurune
0
160
Event is what happens
moro
2
780
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Featured
See All Featured
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
So, you think you're a good person
axbom
PRO
2
2.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Making the Leap to Tech Lead
cromwellryan
135
10k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Transcript
ίʔφʔέʔεʹ ؾΛ͚ͭΖʂ
ࣗݾհ w ڝϓϩ 4JODF w "U$PEFSɿ੨ w 5PQDPEFSɿԫ w
($+ɿສ3ഊୀ 5BOBLB"UTVTIJ ੜ·Ε T T T T T T "U$PEFS੨ϨʔτҎ্ͷੜొऀਓ ࣌ ਓ
ຊ ࢲ͕ڝٕϓϩάϥϛϯάΛ࢝Ίͯ ؒͳ͍ࠒʹϋϚͬͨ ίʔφʔέʔεʹ͍ͭͯ ͓͠͠·͢ɻ
Ҏ্/ҎԼͷͰ ʮΤϥτεςωεͷ;Δ͍ʯΛ ࣮ߦͨ࣌͠ʹɺ Ұ൪࠷ޙʹফ͑Δࣈʁ ༁ ੍ɿ㱡/㱡º 5PQ$PEFS0QFO3PVOEΑΓ
͜ΕҎ্ফ͑ͳ͍ͷͰ ʮʯ͕͑ /ͷྫ ͷഒΛফ͢
ͷഒΛফ͢
ͷഒΛফ͢ Q ·ͣߟ͑Δ͜ͱ ͷഒΛফ͢ QͷഒΛফ͢ ࠷ޙʹͳΔͷɺԿ ͷഒΛফ͍ͯ͠Δ ͔࣌ʁ ºQ ºQ
ºQ QºQ ߟ ফ͞ͳ͍ QͷഒΛফ࣌͢Ͱ طʹফ͍͑ͯΔ /ҎԼͳΒ ઈରʹফ͑Δ Αͬͯɺ㲋/ҎԼͷ࠷େͷૉQͷഒ͕࠷ޙ
ͰɺQͷഒͰ࠷ޙʹফ͑Δͷʁ ҙɿطʹফ͍͑ͯΔࣈফ͑ͳ͍ ྫͷഒΛফ͢߹ /ҎԼͷʮૉºQʯͰ࠷େͷͷ͕͑ º º º طʹফ͍͑ͯΔ º
º ফͤΔ º ফͤΔ / ʮ߹ºQʯطʹফ͍͑ͯΔɻʮૉºQʯ0,ɻ
ղ long[] primeList = ...; int last_i = 0; while
( primeList[last_i++] <= Math.sqrt(N) ) {} long p = primeList[last_i -= 2]; for ( int i = last_i ; i < primeList.length ; i++ ) { if ( primeList[i] * p > N ) { return (int) primeList[i - 1] * p; } } 㱡/㱡ºͳͷͰɺ ·ͰͷૉϦετΛ࡞Δɻ লུ 㲋/ҎԼͷ࠷େͷQΛٻΊΔ /ҎԼͷૉºQͰ࠷େͷΛٻΊΔ
͜ΕͰਖ਼͍͠ ग़ྗ͕ಘΒΕ·͢
͜ΕͰਖ਼͍͠ ग़ྗ͕ಘΒΕ·͢ େମ ͷ߹
ͦ͏ɺ Ҏ֎ͷ߹Ͷɻ /
8IBU`TXSPOH ͳͷͰ߹͚ͩͲ·ͩফ͑ͯͳ͔ͬͨ º º º
ϖʔδલͷ εϥΠυ ͕ؒ͜͜ҧ͍ɻ QະຬͷૉҼΛؚΉ߹ºQ͕ফ͍͑ͯΔɺ ͕ਖ਼͍͠
ίʔφʔέʔε w ͳͥࠔΔ͔ʁ w ΄ͱΜͲͷςετέʔε௨ͬͯ͠·͏ɻ w Α͋͘Δύλʔϯ w ൣғͷ্ݶɺԼݶɻ w
Կ͔͕ͳ͔ͬͨΓɺछྨͩͬͨΓɻ w Կ͔͕ಉͩͬͨ͡Γɻ w Կ͔ͷߟྀ࿙ΕɺܾΊ͚ͭɻ
·ͱΊ ίʔφʔέʔεʹ ͘Ε͙ΕؾΛ͚ͭͯɺ ͘ڝϓϩΛָ͠Έ·͠ΐ͏ʂ ͦ͏ɺʹͳͬͯͶɻ