Blogger templates

lunes, agosto 18, 2008

:: Números Primos en C++ ::


Los números primos son aquellos que solamente pueden ser divididos de manera entera (con residuo igual a Cero) entre ellos mismos y la unidad.

He aquí un par de códigos fuentes (Escritos en Turbo C++ 3.0 de Borland, en mis épocas de universitario) que trabajan con los números primos. El primero (comentado) se trata de averiguar si un número ingresado por el usuario es un número primo o no; mientras que el segundo (sin comentar) genera una lista de todos los números primos que se encuentren entre 1 y la cantidad límite que el usuario inserte.






Ambos códigos fuentes listos para usarse están aquí.

29 comentarios:

Pime dijo...

chido aporte, yo tengo ese mismo programa hecho en java y en ensamblador.....y viendo otras cosas me di cuenta que tienes el de "jugar gato", mi prof de simulacion nos lo pidio hace como una semaana pero me hice bien p#"$jo y no lo hice, ahora tengo que entregarlo para mañana.

yo pensaba decirle al prof que me diera chance de entregarselo al dia siguiente pero, que cres, ya lo encontre jijiji. espero no te molestes en que me fusile tu programa....claro no voy a dejar de darte los creditos

@eduardorobles dijo...

Pime:

Jajajajajaja gracias y no te preocupes, para eso los puse a disponibilidad total en el Blog. Que tengas éxito en tu proyecto escolar.

Gracias por tu comentario XD!

Patricia Ibáñez dijo...

holaa.. por casualidad no tienes el mismo programa pero para java? jaja.. es que es un trabajo que tengo que hacer y soy pésima en esto de la programación, desde ya muchas gracias!

@eduardorobles dijo...

Patricia Ibáñez:

Lo lamento, por el momento no dispongo del código en JAVA, no sé para cuando lo vayas a necesitar, talvez lo postee en cuanto tenga tiempo, pero pues no sé qué tan urgente es para tí...

Pero, debe estar por ahí en la web, suelen subir muchos códigos de Java sobre los números primos...

Gracias por tus comentarios XD!

MarGee_KuroNeko dijo...

No Chicuelo!!!

Como no te conoci en mis epocas de preparatoriana?? Hubieras sido de muchisima ayuda!! =)

Jajajaja!!!!

APAPACHOS!!

Anónimo dijo...

[url=http://sapresodas.net/][img]http://sapresodas.net/img-add/euro2.jpg[/img][/url]
[b]software reseller program, [url=http://vioperdosas.net/]free software of macromedia flash[/url]
[url=http://vioperdosas.net/]buy adobe creative suite 4 production premium in uk[/url] is discount software house to buy pirated software in
windows vista reviews [url=http://vioperdosas.net/]Pro 8 Retail Price[/url] cheap game software
[url=http://vioperdosas.net/]free download of adobe photoshop cs2 for mac[/url] educational software reviews
[url=http://sapresodas.net/]adobe photoshop cs3 free download[/url] buy windows xp
software discount price [url=http://vioperdosas.net/]adobe photoshop extended cs4 student for mac[/url][/b]

Anónimo dijo...

dating transexuals [url=http://loveepicentre.com/]idaho dating site[/url] gay teen singles http://loveepicentre.com/ singles ministry

Anónimo dijo...

attacks symtoms of stress and anxiety [url=http://usadrugstoretoday.com/products/aristocort.htm]aristocort[/url] illinois state medical society http://usadrugstoretoday.com/products/digoxin.htm cook chicken breast easy http://usadrugstoretoday.com/products/apcalis-sx.htm
antenatal urinary tract infections [url=http://usadrugstoretoday.com/products/cardizem.htm]cardizem[/url] sodium levels in the blood [url=http://usadrugstoretoday.com/categories/antivirale.htm]baking soda gum drops[/url]

Anónimo dijo...

pyrazinamide drug action [url=http://usadrugstoretoday.com/products/biaxin.htm]biaxin[/url] ocean health initiative http://usadrugstoretoday.com/products/indinavir.htm pictures of 12 inch penis http://usadrugstoretoday.com/products/protonix.htm
zone diet recipe [url=http://usadrugstoretoday.com/products/extreme-thyrocin.htm]extreme thyrocin[/url] imitrex and blood sugar levals [url=http://usadrugstoretoday.com/]how to ananyze bolt stress[/url]

Anónimo dijo...

diet pill for fast weight loss [url=http://usadrugstoretoday.com/categories/herz-kreislauf.htm]herz kreislauf[/url] omron blood pressure machine ratings http://usadrugstoretoday.com/products/pravachol.htm anticubital vein location http://usadrugstoretoday.com/products/prilosec.htm
artificial intellegance and medicine [url=http://usadrugstoretoday.com/products/levitra.htm]levitra[/url] hcg hormone in blood test percentage [url=http://usadrugstoretoday.com/products/diclofenac.htm]blood wont coagulaye[/url]

Anónimo dijo...

breast enlargement hormone [url=http://usadrugstoretoday.com/categories/gastro-intestinal.htm]gastro intestinal[/url] adverse reactions from the drug topralol http://usadrugstoretoday.com/products/cefixime.htm yellow tea rose picture http://usadrugstoretoday.com/tos.htm
drug offender sentencing act [url=http://usadrugstoretoday.com/catalogue/a.htm]Online Drugstore[/url] paper mache heart box [url=http://usadrugstoretoday.com/products/dostinex.htm]river tech medical chattanooga[/url]

Anónimo dijo...

http://healthboard.in/buspirone/buspirone-used-for
[url=http://healthboard.in/bupropion/bupropion-hci-sr]pharmacy cheap compare[/url] medication prescription viagra propecia cialis man health [url=http://healthboard.in/dexamethasone/x-ray-diffraction-dexamethasone]x ray diffraction dexamethasone[/url]
recent searches in pharmacy http://healthboard.in/dexamethasone/dexamethasone-treated
[url=http://healthboard.in/clopidogrel/clopidogrel-criticism]levitradysfunction erectile levitra[/url] dickson drug rehab [url=http://healthboard.in/caffeine/effects-caffeine-has-on-fertility]effects caffeine has on fertility[/url]
pharmacy direct nz http://healthboard.in/bisoprolol/bisoprolol-conversion
[url=http://healthboard.in/calan]birth control drugs[/url] medicine without drugs [url=http://healthboard.in/bust/exercise-to-increase-bust-size]exercise to increase bust size[/url] drugs that cover pseudomonas resistant [url=http://healthboard.in/bromocriptine/bromocriptine-for-elevated-prolactin]bromocriptine for elevated prolactin[/url]

Anónimo dijo...

http://meen.in/famvir/famvir-info
[url=http://meen.in/fda/career-as-fda-food-inspector]digitek drug[/url] drug layouts [url=http://meen.in/feldene/ingredients-of-feldene]ingredients of feldene[/url]
drug silver dragon http://meen.in/erection/christian-advice-on-erection-disorders
[url=http://meen.in/famciclovir/famciclovir-cold-sores]drug addiction in india[/url] generic drugs and name brands [url=http://meen.in/ergotamine/image-picture-of-ergotamine-100-mg-1-mg]image picture of ergotamine 100 mg 1 mg[/url]
brooks pharmacy great barrington massachusetts http://meen.in/carbohydrates/diabetes-calories-carbohydrates
[url=http://meen.in/cefdinir/infections-treated-by-cefdinir]how long are drugs detectable in urine[/url] viagra drug store [url=http://meen.in/flagyl/flagyl-to-treat-chrons-disease]flagyl to treat chrons disease[/url] acetaminophen and drug interaction with acetonide [url=http://meen.in/cetirizine/generic-cetirizine-hcl-online]generic cetirizine hcl online[/url]

Anónimo dijo...

http://alwayshealth.in/home-medical/foot-pain-bottom-medical
[url=http://alwayshealth.in/stress/stress-symptoms]drug test system flush[/url] effexor and drug interactions [url=http://alwayshealth.in/infections/alternative-medicine-staff-infections]alternative medicine staff infections[/url]
nuclear medicine equipment http://alwayshealth.in/omnicef/omnicef-adverse-effects
[url=http://alwayshealth.in/hearts/kristi-nichols-heart]celebrex pharmacy online[/url] safest ayurvedic antiaging drugs [url=http://alwayshealth.in/pletal/pletal-maker]pletal maker[/url]
drugstore coupon http://alwayshealth.in/pravachol/pravachol-ineffective
[url=http://alwayshealth.in/penis-growth/penis-record]homeopathic over the counter drugs for bipolar disorder[/url] mrdx pharmacy [url=http://alwayshealth.in/orgasm/orgasm-ideas]orgasm ideas[/url] national pharmacy technician [url=http://alwayshealth.in/people-health/male-deer-sexual-health-exercise]male deer sexual health exercise[/url]

Anónimo dijo...

travel team mike lupicaspoiler http://livetravel.in/flight/inverted-flight-aerodynamics virgin blue travel deals
[url=http://livetravel.in/tourism/malawi-tourism-lake-malawi]travel direction for newcastle[/url] problems or restrictions with space travel [url=http://livetravel.in/adventure/bolivia-adventure-holiday]bolivia adventure holiday[/url]
travel in monaghan http://livetravel.in/lufthansa/seattle-boeing-feild-asa-books
[url=http://livetravel.in/disneyland/map-of-walt-disneyland]foreign travel with firearms[/url] travel vaccine and diabetes [url=http://livetravel.in/inn/holiday-inn-peoria]holiday inn peoria[/url]
travel bread http://livetravel.in/lufthansa/boeing-spectralab
[url=http://livetravel.in/lufthansa/boeing-insulation-blankets]fulcrum all night light travel clock[/url] travel to europe air company [url=http://livetravel.in/lufthansa/boeing-mro]boeing mro[/url] bcca travel [url=http://livetravel.in/motel/spyglass-motel-clearwater-beach]spyglass motel clearwater beach[/url]
travel trailers for sale in texas [url=http://livetravel.in/tour/knockout-tour]knockout tour[/url]
travel value rewards program http://livetravel.in/lufthansa/iron-maiden-boeing-757
[url=http://livetravel.in/vacation-packages/alaska-vacation-package]travel thrmos[/url] translation text europe group travel [url=http://livetravel.in/expedia/catalonia-playa-maroma-expedia]catalonia playa maroma expedia[/url]
[url=http://livetravel.in/expedia/kutna-hora-expedia]kutna hora expedia[/url] nyc train travel and show packages [url=http://livetravel.in/motel/oceanic-motel-ocean-city-nj]oceanic motel ocean city nj[/url] stainless travel mug [url=http://livetravel.in/tourism]tourism[/url]
big name in travel guides [url=http://livetravel.in/disneyland/disneyland-jobs]disneyland jobs[/url]

Anónimo dijo...

travel us 19 palm harbor http://wikitravel.in/maps/information-on-topographic-maps photography travel
[url=http://wikitravel.in/airline/airline-comparisons]travel beachriccione[/url] travel from phoenix to las vegas [url=http://wikitravel.in/lufthansa/boeing-787-rss-feed]boeing 787 rss feed[/url]
vassar college alumni travel http://wikitravel.in/vacation-packages/kentucky-vacation-rental-packages
[url=http://wikitravel.in/disneyland/blue-bayou-disneyland]air travel 8900 km from rome to african airport[/url] travel to timor leste [url=http://wikitravel.in/plane-tickets/philippine-plane-tickets]philippine plane tickets[/url]
seiu 509 new travel quarterly car allowance http://wikitravel.in/disneyland/disneyland-holiday-packages jewelers screwdrivers travel [url=http://wikitravel.in/motel/davenport-ia-best-motel-rates]davenport ia best motel rates[/url]

Anónimo dijo...

chanel purete ideale blemish control acne creme http://topcitystyle.com/dark-grey-black-dolce-amp-gabbana-color22.html gucci summer sandles [url=http://topcitystyle.com/blue-and-grey-on-sale-color145.html]lauren graham american way[/url] organic baby clothes
http://topcitystyle.com/t-shirts-for-men-category40.html forward thrust shoes [url=http://topcitystyle.com/-18-casual-brand80.html]clarks shoes for woman[/url]

Anónimo dijo...

immunizations needed for adult travel aboard http://planetofporn.in/adult-online/permanent-removal-of-adult-acne-scars
[url=http://planetofporn.in/free-amateur/amateur-night-striptease]anal masturbation for teens[/url] forced anal sex stories [url=http://planetofporn.in/adult-online/free-adult-cartoons-games]free adult cartoons games[/url]
amateur black college http://planetofporn.in/adult-video/adult-babies-diaper-punishment
[url=http://planetofporn.in/erotic-gay/craigslist-erotic-sevices]adult non motorized scooters[/url] harscore anal [url=http://planetofporn.in/bondage/amanda-in-sock-first-time-bondage-thumbnail]amanda in sock first time bondage thumbnail[/url]
pirate costumes adult http://planetofporn.in/blowjob/blowjob-thumbnail
[url=http://planetofporn.in/first-anal/giving-anal-sex-for-first-time]free video anal beads[/url] for what is castor oil used as a lubricant [url=http://planetofporn.in/blow]blow[/url]
mature amateur voyeur http://planetofporn.in/erotic-stories/erotic-stories-nifty
[url=http://planetofporn.in/best-amateur/amateur-gallery-free-milf]adult parent family[/url] virgin mobile phones and plans [url=http://planetofporn.in/condom/mature-dildo-free-gallaries]mature dildo free gallaries[/url]

Anónimo dijo...

seth green movie list [url=http://full-length-movies.com/dvd-quality-movie-saw-4/27600database/]Saw 4[/url] movie control [url=http://full-length-movies.com/dvd-quality-movie-love-songs/1164database/]Love Songs[/url]
window movie maker working wih clips contract color [url=http://worldmovs.co.cc/full_version-war/17121database/]War[/url] nem movie releases [url=http://worldmovs.co.cc/full_version-night-of-the-living-dead-3d/21261database/]Night of the Living Dead 3D[/url]
kajol latest movie [url=http://worldmovs.co.cc/full_version-el-gran-carnaval/6516database/]El Gran Carnaval[/url] muscle beach party movie [url=http://worldmovs.co.cc/full_version-la-vie-en-rose/10457database/]La Vie en Rose[/url]
nintendo 64 movie player [url=http://full-length-movies.com/dvd-quality-movie-war/30151database/]War[/url] vcd movie download [url=http://worldmovs.co.cc/full_version-showbiz/16012database/]Showbiz[/url]

Anónimo dijo...

replica designer handbags and accessesories http://luxefashion.us/xl-tops-shirts-with-colar-size6.html kiwi organics kids clothes [url=http://luxefashion.us/frankie-morello-men-brand19.html]history of basketball shoes[/url] mens wide width shoes
http://luxefashion.us/?action=products&product_id=1689 munro freedom shoes [url=http://luxefashion.us/pink-long-sleeve-tops-color10.html]reiker shoes[/url]

Anónimo dijo...

degree in medical lab [url=http://usadrugstoretoday.com/products/vitaliq.htm]vitaliq[/url] is sleeping with mouth open bad http://usadrugstoretoday.com/catalogue/w.htm
diet fibromyalgia people [url=http://usadrugstoretoday.com/categories/arthrite.htm]arthrite[/url] breast cancer case report [url=http://usadrugstoretoday.com/products/altace.htm ]passing blood streaked mucus [/url] medical scrub suits
natural bodybuilding magazine luis santiago [url=http://usadrugstoretoday.com/categories/gesunde-knochen.htm]gesunde knochen[/url] rawlings heart of the hide glove http://usadrugstoretoday.com/products/glyset.htm
overdose of vitamin b12 [url=http://usadrugstoretoday.com/index.php?lng=de&cv=eu]Buy generic and brand medications[/url] bakersfield diabetic care [url=http://usadrugstoretoday.com/categories/perte-de-poids.htm ]american red cross blood drive [/url] weight loss surgery option

Anónimo dijo...

texas tea rooms [url=http://usadrugstoretoday.com/products/generic-motrin.htm]generic motrin[/url] south africa medical schools http://usadrugstoretoday.com/products/acticin.htm
lansing dental wellness [url=http://usadrugstoretoday.com/products/keppra.htm]keppra[/url] red blood cell membrane [url=http://usadrugstoretoday.com/categories/anti-herpes.htm ]prostrate health support [/url] over 50 weight loss
angina like pain spasm cardiac syndrome x [url=http://usadrugstoretoday.com/categories/general-de-salud.htm]general de salud[/url] sjogiens syndrome http://usadrugstoretoday.com/categories/controllo-delle-nascite.htm
health park medical center myers [url=http://usadrugstoretoday.com/categories/ipnoterapia.htm]ipnoterapia[/url] prescription drugs prostate cancer treatment [url=http://usadrugstoretoday.com/products/neurontin.htm ]fast for free blood testosterone [/url] the hired heart

Anónimo dijo...

http://xwp.in/dexamethasone/bortezomib-melphalan-dexamethasone
[url=http://xwp.in/diltiazem/diltiazem-and-potassium]tn drug free workplace program[/url] acholic and drug treatment youth norfolk virginia http://xwp.in/edema/tcm-edema-of-legs-and-ankles
hospital pharmacy jobs http://xwp.in/imdur/imdur-added-to-medication-regime
[url=http://xwp.in/amoxicillin/amoxicillin-ranb-0655]drugs synthesized[/url] a clinical pharmacy oriented drug surveillance network http://xwp.in/casodex/casodex-shops-online
dr john pet medicine http://xwp.in/ceftin/anabolic-steroids-ceftin-macrobid-pravachol-tobradex-zoloft
[url=http://xwp.in/cefdinir/definition-of-onnicef-cefdinir]against legalization of drugs[/url] drug abuse medicare coverage http://xwp.in/amoxil/images-of-generic-amoxil-tablets what is the average salary fro a pharmacy technician http://xwp.in/diabetic/symtoms-of-being-diabetic

Anónimo dijo...

dress designers http://luxefashion.us/of-white-sweaters-color154.html womens affordable wide width shoes [url=http://luxefashion.us/new-dolce-amp-gabbana-type6.html]mod fashion[/url] valentino fashion group
http://luxefashion.us/jackets-amp-sweatshirts-new-category10.html ingeo fiber clothes [url=http://luxefashion.us/armani-page9.html]designer kitchens[/url]

Anónimo dijo...

wrestling clothes http://luxefashion.us/women-page6.html man comfort shoes [url=http://luxefashion.us/cherry-color141.html]verde international shoes[/url] svensk designer
http://luxefashion.us/dolce-amp-gabbana-shorts-and-capri-brand2.html infant clothes [url=http://luxefashion.us/2-pieces-category105.html]betty boop adidas shoes[/url]

Anónimo dijo...

tudor hord bingo http://wqm.in/poker-online_floyd-elliott-and-world-series-poker-1996 horseshoe casino reservations
[url=http://wqm.in/gambling-online_casino-gambling-games-play-baccarat-online]avi casino and resort[/url] leigh keno antiques [url=http://wqm.in/betting_casino-betting-tips]casino betting tips[/url]
windover nevada hotels and casino http://wqm.in/betting_sport-book-betting-guide
[url=http://wqm.in/joker_border-collie-wizaland-ebony-joker]joker pictures comic[/url] university of toronto and jokers hill [url=http://wqm.in/online-casino_lucky-nugget-casino]lucky nugget casino[/url]
ohio lottery commission http://wqm.in/keno_keno-ticket chingy jackpot track listings [url=http://wqm.in/slots_nickel-slots]nickel slots[/url]

Anónimo dijo...

movie with mackenzie astin and ione skye [url=http://moviestrawberry.com/films/film_los_cronocrmenes/]los cronocrmenes[/url] paris hilton porn movie http://moviestrawberry.com/films/film_herbie_goes_to_monte_carlo/ movie titles with lyrics in title
twilight by stephenie meyer the movie [url=http://moviestrawberry.com/films/film_carver/]carver[/url] websites where i can download baby oy the movie http://moviestrawberry.com/films/film_frozen_river/ short pump 14 bee movie premiere
broken english movie [url=http://moviestrawberry.com/films/film_the_russell_girl/]the russell girl[/url] vegas movie
disney movie crafts [url=http://moviestrawberry.com/films/film_the_magic_christian/]the magic christian[/url] free movie the notebook http://moviestrawberry.com/films/film_the_curse_of_el_charro/ spiderman movie cast
quality xxx movie downloads [url=http://moviestrawberry.com/films/film_nightwatching/]nightwatching[/url] transformers movie deluxe 3 pack http://moviestrawberry.com/hqmoviesbygenres/download-genre_comedy-movies/?page=36 movie clips undress

Anónimo dijo...

spiderman twin towers movie trailer [url=http://moviestrawberry.com/films/film_open_season_2/]open season 2[/url] mario brothers movie http://moviestrawberry.com/films/film_leap_of_faith_1992/ free movie clips of incest
lactating porn movie clips [url=http://moviestrawberry.com/films/film_inland_empire/]inland empire[/url] movie school hostages children masks http://moviestrawberry.com/films/film_the_triangle_70/ ashlynn brooke movie
movie clinton ar 72031 [url=http://moviestrawberry.com/films/film_fighting_words/]fighting words[/url] anal movie post
kinston nc movie [url=http://moviestrawberry.com/films/film_next/]next[/url] the very busy spider movie http://moviestrawberry.com/films/film_gooby/ walmart movie rental
simons movie [url=http://moviestrawberry.com/films/film_doomsday/]doomsday[/url] movie listings at a theater in mexico http://moviestrawberry.com/films/film_the_hole/ dirty dancing havana nights the movie

Anónimo dijo...

the singer movie by anthony felton [url=http://moviestrawberry.com/films/film_spies_like_us/]spies like us[/url] monticello mn movie theater http://moviestrawberry.com/hqmoviesbygenres/download-genre_animation-movies/?page=3 movie facing the giants
movie theater at orange park mall in jacksonville fl [url=http://moviestrawberry.com/films/film_predator_island/]predator island[/url] movie downloads bootleg http://moviestrawberry.com/films/film_alpha_dog/ sexy blonde movie clips
aquamarine movie [url=http://moviestrawberry.com/films/film_arlington_road/]arlington road[/url] digimon movie
movie on bet database [url=http://moviestrawberry.com/films/film_la_morte_ha_fatto_l_uovo/]la morte ha fatto l uovo[/url] download female masturbation quicktime movie http://moviestrawberry.com/films/film_dead_in_the_water/ the 10 commandments movie
homemade movie clips [url=http://moviestrawberry.com/films/film_the_langoliers/]the langoliers[/url] britney spears vma movie awards 2007 video http://moviestrawberry.com/films/film_anaconda_4_trail_of_blood/ milwaukee movie theatres

Related Posts Plugin for WordPress, Blogger...