Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14537
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: skipping some i, j , ... values in Table |
| Date | 2013-05-19 09:47 +0000 |
| Message-ID | <kna72p$g00$1@smc.vnet.net> (permalink) |
| References | <20130518063946.CEE236A25@smc.vnet.net> |
| Organization | Time-Warner Telecom |
sol = something @@@
DeleteCases[
Flatten[
Table[{i, j}, {i, 10}, {j, 10}],
1],
_?(PrimeQ[Total[#]] &)];
or
sol == something @@@
Select[
Flatten[
Table[{i, j}, {i, 10}, {j, 10}],
1],
! PrimeQ[Total[#]] &]
True
Bob Hanlon
On Sat, May 18, 2013 at 2:39 AM, Andre Hautot <ahautot@ulg.ac.be> wrote:
>
> Hi,
> Suppose I need a list, Flatten[Table[something[i,j],{i,10},{j,10}]],
> where some combinations of indices i and j are voluntarily missing under
> a known condition (for example, stupid I know, when i+j is a prime).
> How can I do that ?
> Thanks in advance,
> ahautot
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: skipping some i, j , ... values in Table Bob Hanlon <hanlonr357@gmail.com> - 2013-05-19 09:47 +0000
csiph-web