Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14536

Re: skipping some i, j , ... values in Table

From Sseziwa Mukasa <mukasa@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 <kna72k$fvu$1@smc.vnet.net> (permalink)
References <20130518063946.CEE236A25@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Insert {} when the condition is true eg,

Flatten[Table[If[PrimeQ[i+j],{},something[i,j]],{i,10},{j,10}]]

On Saturday, May 18, 2013, Andre Hautot 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


Thread

Re: skipping some i, j , ... values in Table Sseziwa Mukasa <mukasa@gmail.com> - 2013-05-19 09:47 +0000

csiph-web