<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Filed as: <a href="https://bugs.swift.org/browse/SR-1487" class="">SR-1487</a><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 11, 2016, at 1:51 PM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Wed, May 11, 2016 at 1:48 PM, Hooman Mehr via swift-users<br class=""><<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:<br class=""><blockquote type="cite" class="">The reason this is appearing here before filing a radar is getting a quick<br class="">feedback as I have been assuming this is the expected behavior but Nate Cook<br class="">told me otherwise. See this thread for the initial discussion that lead to<br class="">this.<br class=""></blockquote><br class="">Hi Hooman,<br class=""><br class="">This is a bug in String indices. Could you file it, we will look into it.<br class=""><br class="">Dmitri<br class=""><br class="">-- <br class="">main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br class="">(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>>*/<br class=""></div></div></blockquote></div><br class=""></div></body></html>