Skip to content

Some Brazilian Federal University algorithm challenge - I made the Unix Way with PHP

License

Notifications You must be signed in to change notification settings

terremoth/sushiman-prime-numbers-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sushiman-prime-numbers-challenge

Some Brazilian Federal University algorithm challenge - I made the Unix Way with PHP

Problem description, if I remember well:

  • there is a sushiman who likes a lot prime numbers
  • he would like a program to generate all prime numbers with a fixed length
  • for example: 4 - it will generate all prime numbers from 1000 to 9999

I made this solution using PHP + Unix Philosophies/Rules

image

TODO

  • handle $argv with getopt(...)
  • handle input errors like strings or non positive number values
  • optimize genprimes.php for algorithm to print faster

About

Some Brazilian Federal University algorithm challenge - I made the Unix Way with PHP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages