Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8378
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'am,': 0.13; 'wrote:': 0.15; '30.': 0.16; 'boolean': 0.16; 'joshi': 0.16; 'programming': 0.18; 'subject:list': 0.18; 'help.': 0.19; 'discussion': 0.22; 'header:In-Reply-To:1': 0.22; 'topic.': 0.23; 'skip:[ 10': 0.26; 'function': 0.26; 'hey': 0.26; 'somebody': 0.28; 'all,': 0.28; 'list': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.34; 'there': 0.34; 'to:addr:python- list': 0.34; 'some': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'subject:with': 0.38; 'header:Mime-Version:1': 0.39; 'i.e.': 0.39; 'to:addr:python.org': 0.39; 'might': 0.40; 'number.': 0.63; 'here': 0.66; 'prime': 0.73; '03:01': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | "Colin J. Williams" <cjw@ncf.ca> |
| Subject | Re: reg: playing with the list |
| Date | Fri, 24 Jun 2011 10:09:47 -0400 |
| References | <BANLkTi=Vyuc5xOoV+2vfRZPmhUT=hO0g5A@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 206-248-162-115.dsl.teksavvy.com |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
| In-Reply-To | <BANLkTi=Vyuc5xOoV+2vfRZPmhUT=hO0g5A@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.369.1308924616.1164.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1308924617 news.xs4all.nl 14144 [::ffff:82.94.164.166]:52206 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8378 |
Show key headers only | View raw
On 24-Jun-11 03:01 AM, kaustubh joshi wrote: > Hey all, > I am new here and new to python too. In general new to programming . > I was working on aproblem. > and need some help. > I have a list of numbers say [2,3,5,6,10,15] > which all divide number 30. > Now i have to reduce this list to the numbers which are prime in number. > i.e. > [2,3,5] > can somebody suggest? > K > You might try writing the boolean function is_prime(n) for almost any n. There was a recent discussion on this topic. Colin W.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: reg: playing with the list "Colin J. Williams" <cjw@ncf.ca> - 2011-06-24 10:09 -0400 Re: reg: playing with the list Laurent Claessens <moky.math@gmail.com> - 2011-06-24 16:29 +0200
csiph-web