Hi mesana,

Welcome to the monastery.

What you are asking would probably be pretty trivial and simple to implement in Perl, but the desired output pattern you describe isn't quite clear to me.

Your output begins at the first input "start" value, 115247085, and then adds 200 to get your first output "end" value, 115247285. But then for some reason you add 2 to this to get your output's next "start" value, 115247287. This pattern continues, but 115250400 less 115247489 is not divisible by 202, so the pattern seemingly broke down there. You pick the pattern up again, but at 115250602 inexplicably add 304 to get 115250906. Then your original pattern of adding 2 and then adding 200 continues. I'm also not clear on why you would stop at the value 115251108, but perhaps that was just an arbitrary stopping point. Do you see why we might be confused? :-)

If you explain that a little more clearly the monks here can probably help you out.

Update: Fixed some number errors of my own.

I love it when things get difficult; after all, difficult pays the mortgage. - Dr. Keith Whites
I hate it when things get difficult, so I'll just sell my house and rent cheap instead. - perldigious

In reply to Re: continuuos intervals by perldigious
in thread continuuos intervals by mesana

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.