Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: skipping some i, j , ... values in Table
Replies: 3   Last Post: May 19, 2013 5:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bob Hanlon

Posts: 906
Registered: 10/29/11
Re: skipping some i, j , ... values in Table
Posted: May 19, 2013 5:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

sol = something @@@
Table[{i, j}, {i, 10}, {j, 10}],
_?(PrimeQ[Total[#]] &)];


sol == something @@@
Table[{i, j}, {i, 10}, {j, 10}],
! PrimeQ[Total[#]] &]


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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.