#!/usr/bin/env ruby # -*- coding: utf-8 -*- count = 0 while count <1000000000000 count += 1 if count % 3721 !=0 next end printf("3の倍数は%d \n", count) end