[VA] Short & Sweet Math Challenge #24: "2019 Spring Special 5-tier"
|
04-13-2019, 10:35 PM
(This post was last modified: 04-14-2019 08:53 PM by Albert Chan.)
Post: #35
|
|||
|
|||
RE: [VA] Short & Sweet Math Challenge #24: "2019 Spring Special 5-tier"
I recently created nextprime.lua, which is needed for solving Tier 2 puzzle.
My Lua code available in https://github.com/achan001/PrimePi Quote:p = require 'nextprime' lua> function loop(n,f) for i=1,n do io.write(f(),' ') end print() end lua> seq=sb_find(7) lua> loop(10,seq) 7 4801 9547 9601 11311 11317 11941 11953 13033 13327 lua> seq=sb_find(31) lua> loop(10,seq) 31 619 709 739 769 829 859 919 1549 1579 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)