tag:blogger.com,1999:blog-5990386.post1788738873865228219..comments2019-08-15T21:36:45.173+01:00Comments on A Jaywalker's Diary: TRG Tech Mind GamesJaywalkerhttp://www.blogger.com/profile/03080970368450896690noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5990386.post-67846477640665658582012-05-30T22:38:36.124+01:002012-05-30T22:38:36.124+01:00This is a lambda function in Python which calculat...This is a lambda function in Python which calculates prime numbers from 2 to n.<br /><br />You can call it by:<br />print z(42)<br /><br />Its output will be null because there is logical mistake in the statement. Range of i should be 2 to x-1 and more precisely range of x should be 2 to n.<br /><br />RegardsYasir Mahmoodhttps://www.blogger.com/profile/00215588080225665544noreply@blogger.comtag:blogger.com,1999:blog-5990386.post-8889468244811641062012-05-30T22:35:29.500+01:002012-05-30T22:35:29.500+01:00This is a lambda function in Python language, whic...This is a lambda function in Python language, which calculates prime numbers from 2 to n.<br /><br />After declaring the above statement, you can call it by:<br />print z(6)<br /><br />Its output will be null, because there is a logical error in the statement.<br /><br />Range of x should be 2 to n and range of i should be 2 to x-1<br /><br />RegardsYasir Mahmoodhttps://www.blogger.com/profile/00215588080225665544noreply@blogger.com