skip to main
|
skip to sidebar
Metz's Meanderings
The Wandering Mind of a Sane Man Amidst the Insanity of Modern America.
Thursday, November 5, 2009
Algorithm Which Returns the Next Prime After the Number Entered
function nextPrime = nextPrime(number)
number = number + 1;
while isPrime(number) == 0
number = number + 1;
end
nextPrime = number;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Baron Metzengerstein
Catholic. Nationalist. Software Engineer, Gamer. Metalhead. Lover of history, theology, and SF/F.
View my complete profile
Topics
Computer Science
(62)
CS
(22)
Java
(19)
MATLAB
(19)
politics
(15)
C++
(14)
Mathematics
(13)
Networking
(10)
essays
(9)
philosophy
(9)
Chaos Theory
(4)
C
(3)
Computer Security
(3)
Shinies
(3)
economics
(3)
history
(3)
Dev Diaries
(2)
technology
(2)
Cryptography
(1)
GPG
(1)
Introduction
(1)
Net Neutrality
(1)
RSA
(1)
Speech
(1)
gaming
(1)
manga
(1)
music
(1)
Blog Archive
►
2012
(1)
►
24 Jun
(1)
►
2011
(17)
►
29 May
(1)
►
8 May
(1)
►
1 May
(1)
►
24 Apr
(11)
►
30 Jan
(1)
►
9 Jan
(2)
►
2010
(27)
►
21 Nov
(1)
►
14 Nov
(1)
►
31 Oct
(1)
►
19 Sep
(1)
►
22 Aug
(1)
►
13 Jun
(4)
►
11 Apr
(1)
►
28 Mar
(1)
►
14 Mar
(1)
►
7 Mar
(7)
►
28 Feb
(2)
►
21 Feb
(1)
►
17 Jan
(3)
►
10 Jan
(1)
►
3 Jan
(1)
▼
2009
(36)
►
6 Dec
(5)
►
29 Nov
(1)
►
22 Nov
(1)
►
15 Nov
(1)
►
8 Nov
(5)
▼
1 Nov
(23)
An Algorithm to Find the Greatest Common Divisor (...
Oh My Stars and Garters
Factorization Algorithm in MATLAB
IsPrime Implemented in MATLAB (Using IntDivision I...
Algorithm Which Returns the Next Prime After the N...
An Algorithm For Dividing Integers (Returning the ...
Binary Morality and other Religious Quandaries
Since It's Election Day...
A Discussion on Labels
Apologies...
getData function example in C++
List Class
Shape Class (.cpp file)
Polymorphism / Class Heirarchy examples ~ Shapes
Rational class (cpp file)
An implementation of a rational class (good use of...
Date Class .cpp
An example of a date class in C++
Books as Games
Overpopulation Essay
Concurrency ~ Starving Philosophers Problem
Did you know...
A Beginning ~ Random Meanderings
Daily Reading
Penny Arcade
Muskovites
2 hours ago
Ctrl+Alt+Del
Tipping Point, p15
2 hours ago
IMAO
Greta Thunberg Scowls at Your Bagel With Cream Cheese; Demands a 150% Tax On It
12 hours ago
PlayStation.Blog
Dave the Diver: free Godzilla DLC arrives May 23
17 hours ago
xkcd.com
Elementary Physics Paths
2 days ago
Captain Capitalism
How the Department of Homeland Security Wasted $700,000 in Taxpayer Money on "Diverting Hate"
2 weeks ago
Suburban Lion's Blog
On the adoption of “he/they” pronouns
2 weeks ago
Maggie's Farm
Holiday season: What is a pudding?
1 year ago
Michelle Malkin
'-30-': An Ending, But Not the End, by Michelle Malkin
1 year ago
Doctor Zero
Quels sont les avantages d’opter pour la médiation familiale ?
1 year ago
Instapundit
VODKAPUNDIT PRESENTS YOUR WEEKLY INSANITY WRAP: The Biden-China-Oil Connection. “Instead of moving o…
2 years ago
Basil's Blog
3 years ago
Ace of Spades HQ
The Morning Report - 4/20/21 [J.J. Sefton]
3 years ago
Hot Air » Top Picks
White House: Here come the tax hikes
3 years ago
The Conservative Wahoo
Some Post Election Thoughts
3 years ago
Nerd Heroine
#BARTRomance
4 years ago
Blogs@Intel
Celebrating Veterans Day: How the Army Prepared This Vet for Success at Intel
4 years ago
Three Beers Later...
4 years ago
Kerfuffles
CONFEDERATE VETERANS ARE U.S. VETERANS!
5 years ago
[H]ardOCP News/Article Feed
The Final Bottom Line
5 years ago
Blizzard Entertainment-News
Overwatch League™ and Twitch Sign Landmark Multi-Year Media Rights Deal
6 years ago
Blogs
RSARTE 10.x 2017.43
6 years ago
Blog of helios
Just. Get. Up
6 years ago
Steve Sailer's iSteve Blog
Read YouTube CEO Susan Wojcicki’s Response to her Unborn Son's Question about James Damore's Use of Statistics
6 years ago
Pajamas TV
Tech Kids: You Can't Watch That! (PJTV Special)
8 years ago
The Truth Will Set You Free
8 years ago
Liz Blaine
Another 8,000 Jobs in the UK cut from HSBC
8 years ago
The Whited Sepulchre
The Last Blog Post - "Don't Be Safe"
9 years ago
PC's Semiconductors Blog
NVIDIA launches GRID test drive for enterprises in India
9 years ago
A Conservative's Opinion and Solutions
From an anonymous Border Patrol Agent
9 years ago
The Boy Scout Principle
Netbooting my iMac G3
9 years ago
The Bleached Mausoleum
Translation Of The Encrypted NSA Tweet
10 years ago
iowahawk
Your 2014 Iowahawk Earth Week Cruise-In Grand Champion Carbonator
10 years ago
AL'S BLOG
Let Me Be Clear About This
10 years ago
Gates of Vienna
Gates of Vienna Has Moved
11 years ago
Another Black Conservative
Elizabeth Warren - There is nobody in this country who got rich on his own.
12 years ago
Ruby Slippers
Ding Dong!
13 years ago
Societal Scraps
RINO season? More like OPEN season
14 years ago
Jim Treacher's Blog That Is on the Internet
I AM NO LONGER BLOGGING AT THIS SITE
14 years ago
The Other McCain
WE'VE MOVED!
14 years ago
May Contain Nuts
P.O.W. in the People's Republic of California
Cultural Gadfly
Double Fine™
DRUDGE REPORT 2010®
The Persistent Conservative
FREE MARKET FAIRY TALES
The Handwriting On the Wall
Conservative News, Issues, Political Cartoons, Blogs, Talk Radio, Commentary from Townhall Conservatives
Right Klik
Show 10
Show All
No comments:
Post a Comment